Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualmhagain

Posted 08 March 2012 - 05:04 PM

Documented sample code for loading a texture: http://lonesock.net/soil.html and http://libregamewiki...L_Image_Library

SOIL.c, SOIL_load_OGL_texture function, lines 154 and 155:
/*	and nuke the image data	*/
	SOIL_free_image_data( img );

There is no need to do anything yourself to free the data.

#2mhagain

Posted 08 March 2012 - 05:03 PM

Documented sample code for loading a texture: http://lonesock.net/soil.html and http://libregamewiki...L_Image_Library

SOIL.c, lines 154 and 155:
/*	and nuke the image data	*/
	SOIL_free_image_data( img );

There is no need to do anything yourself to free the data.

#1mhagain

Posted 08 March 2012 - 05:02 PM

Documented sample code for loading a texture: http://lonesock.net/soil.html and http://libregamewiki.org/Simple_OpenGL_Image_Library

SOIL.c, lines 154 and 155:
    /*    and nuke the image data    */
    SOIL_free_image_data( img );
There is no need to do anything yourself to free the data.

PARTNERS