Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 spark2 crash HELP

Go down 
2 posters
AuthorMessage
tunacat




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

SPARK2
SPK_Renderer.h

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
Juff
Developer



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

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
http://spark.developpez.com
 
spark2 crash HELP
Back to top 
Page 1 of 1
 Similar topics
-
» SPARK2 Ideas... What you think ?
» Renderer Crash
» SPARK2 libpugixml errors
» crash and leaks or bugs? :).
» Spark2 Load from xml failed.

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