HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 

 spark2 crash HELP

Go down 

Messages : 2
Date d'inscription : 2010-10-22

PostSubject: spark2 crash HELP   Tue Oct 26, 2010 11:11 pm


inline RenderBuffer* Renderer::attachRenderBuffer(const Group& group) const
return NULL;

I am pretty sure this causes my crash. GL stack underflow and cannot read memory errors at glDrawArray call after
Is this how its meant to be because it just assigns NULL to the renderer and thats baaad Sad
Back to top Go down
View user profile

Messages : 539
Date d'inscription : 2009-07-14
Age : 36

PostSubject: Re: spark2 crash HELP   Wed Oct 27, 2010 4:30 am

it's not the renderer that is NULL, it is the render buffer : i.e. where the renderer writes data before sending them to the GPU. This method is overidden in derived renderers, this is the default behaviour. Not all renderer will need a render buffer. For instance, the GLPointRenderer doesnt need it as data are taken directly from the particle data. This saves a pass of buffering.

For you error, a gl stack underflow means a GL stack has been popped when it has no more element in it. Typically this will be either a matrix stack or the attrib stack.
Check if you dont have a glPopMatrix that does not go with a glPushMatrix and the same with glPush/PopAttrib. Maybe you re using GLRenderer::save/restoreGLStates. Those must be in couple to.
Back to top Go down
View user profile http://spark.developpez.com
spark2 crash HELP
Back to top 
Page 1 of 1
 Similar topics
» Webdrivers is Crashing IE8
» Win Kingdom Chronicles Collector's Edition
» The New York Initiative Crash Course
» Migraines after car accident
» Jual Batu Aquascape: Batu Sulawesi

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Evolution (en)-
Jump to: