malloc particle effect (glDrawArray)

Member
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
Member
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 1,520 Dec 1, 2013 05:24 PM
Last Post: JustinFic
  Using blending for a text fading effect. cjcaufield 2 4,428 Jun 30, 2010 08:21 PM
Last Post: cjcaufield
  Halo-Effect in 3D OpenGL ES Bersaelor 4 5,881 Dec 17, 2009 11:54 AM
Last Post: Mark Levin
  How to do a Quick, Dirty bloom effect FAST! Oddity007 12 8,140 May 9, 2009 09:42 AM
Last Post: aardvarc
  Turning Page Effect with OpenGl ReSuMa 3 5,730 May 12, 2007 05:57 AM
Last Post: ReSuMa