Dynamicly drawing to a texture

BlitzMax Forums/BlitzMax OpenGL Programming/Dynamicly drawing to a texture

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

OpenGl will not flip the screen if you do not tell it to.

If you can see stuff being drawn you do not have a backbuffer.

Or you can put glDrawBuffer(GL_BACK) just to be sure. Having said that, on some systems it's idea of which is back and which is front is all screwed up.

It should default to the backbuffer if there is one. I suggest testing to be sure that it may be drawing to the front buffer. Also call:

Local a:Int
glGetIntegerv(GL_DOUBLEBUFFER,Varptr(a))
print a

(it might not be doublebuffer, maybe DOUBLE_BUFFERED. .. but it should tell you if there is one.