HomeHome  SearchSearch  RegisterRegister  Log inLog in  


 spark2 crash HELP

Go down 

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

spark2 crash HELP Empty
PostSubject: spark2 crash HELP   spark2 crash HELP Icon_minitimeTue 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

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

spark2 crash HELP Empty
PostSubject: Re: spark2 crash HELP   spark2 crash HELP Icon_minitimeWed 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
spark2 crash HELP
Back to top 
Page 1 of 1

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