View Single Post
juise-'s Avatar
Posts: 186 | Thanked: 192 times | Joined on Jan 2010 @ Finland
#8
It seems that the buffer is given as parameter to glTexImage2D(). Check the documentation to see exactly what that function does to the buffer.

Does the free() work if you comment out the call to glTexImage2D()?

Does it work if you place it immediately after malloc()?
__________________
Trout have underwater weapons.
 

The Following User Says Thank You to juise- For This Useful Post: