iDevGames Forums
malloc particle effect (glDrawArray) - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: malloc particle effect (glDrawArray) (/thread-1619.html)



malloc particle effect (glDrawArray) - Graphic Ace - Mar 15, 2009 02:27 PM

When I use malloc(); to create the particle effect for the glDrawArrays function. An then use free(); to destroy them. An then create another new particle effect the way. I some how get to old data is this Normal??


malloc particle effect (glDrawArray) - maximile - Mar 15, 2009 03:13 PM

Yeah, very possible. Malloc doesn't zero the data. You can use calloc if you want zeroed data.