Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Nov 22, 2017 8:02 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: OpenGL Crash..
PostPosted: Tue Feb 16, 2010 1:15 pm 
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?


Top
  
Reply with quote  
 Post subject: Re: OpenGL Crash..
PostPosted: Tue Feb 16, 2010 2:20 pm 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
need more info, system, whats in the timer, error log?

_________________
Open Source OpenGL Classes:
Camera (1.1), Light (1.0), Texture (1.2), Font (1.2), Mesh (1.7), Models (1.0)


Top
 Profile  
Reply with quote  
 Post subject: Re: OpenGL Crash..
PostPosted: Wed Feb 17, 2010 10:51 am 
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?


Top
  
Reply with quote  
 Post subject: Re: OpenGL Crash..
PostPosted: Wed Feb 17, 2010 12:47 pm 
Offline

Joined: Fri Sep 30, 2005 8:39 pm
Posts: 364
Location: Arlington, TX
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.

_________________
Open Source OpenGL Classes:
Camera (1.1), Light (1.0), Texture (1.2), Font (1.2), Mesh (1.7), Models (1.0)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group