malloc particle effect (glDrawArray)

Posts: 23
Joined: 2007.12
Post: #1
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??
Quote this message in a reply
Posts: 283
Joined: 2006.05
Post: #2
Yeah, very possible. Malloc doesn't zero the data. You can use calloc if you want zeroed data.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Temple Run Magnet Effect anmetv 2 5,081 Dec 1, 2013 05:24 PM
Last Post: JustinFic
  Using blending for a text fading effect. cjcaufield 2 7,258 Jun 30, 2010 08:21 PM
Last Post: cjcaufield
  Halo-Effect in 3D OpenGL ES Bersaelor 4 9,557 Dec 17, 2009 11:54 AM
Last Post: Mark Levin
  How to do a Quick, Dirty bloom effect FAST! Oddity007 12 15,624 May 9, 2009 09:42 AM
Last Post: aardvarc
  Turning Page Effect with OpenGl ReSuMa 3 8,238 May 12, 2007 05:57 AM
Last Post: ReSuMa