Thread
:
[resolved] C programming - need help with malloc and free
View Single Post
juise-
2010-07-07 , 11:40
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.
Quote & Reply
|
The Following User Says Thank You to juise- For This Useful Post:
dwaradzyn
juise-
View Public Profile
Send a private message to juise-
Visit juise-'s homepage!
Find all posts by juise-