Real Software Forums
http://forums.realsoftware.com/

OpenGL Crash..
http://forums.realsoftware.com/viewtopic.php?f=4&t=32544
Page 1 of 1

Author:  JustSomeGuy [ Tue Feb 16, 2010 1:15 pm ]
Post subject:  OpenGL Crash..

I have a timer on my form and i use it to generate events that cause OpenGL to redraw the scene.

It seems that it crashes only when drawscene is called from the timer.

Any thoughts on why?

Author:  Blake [ Tue Feb 16, 2010 2:20 pm ]
Post subject:  Re: OpenGL Crash..

need more info, system, whats in the timer, error log?

Author:  JustSomeGuy [ Wed Feb 17, 2010 10:51 am ]
Post subject:  Re: OpenGL Crash..

Sorry my fault... Recursion.
The OpenGLSurface has a render routine.
I don't think you can render outside of that routine.

By the way why is a timer necessary?
Is there no double buffering on an opengl surface?

Author:  Blake [ Wed Feb 17, 2010 12:47 pm ]
Post subject:  Re: OpenGL Crash..

Double buffering with OpenGL isn't like double buffering with a canvas. You can either call Render with a timer to keep the FPS running or you can just call Render when you change something that needs to be rendered if you are using it for something that's less interactive than a game.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/