On Tue, Nov 30, 2010 at 12:50 PM, Derakon <firstname.lastname@example.org> wrote:Okay, I've updated the Python OpenGL bindings on the Windows machine,
> Ah yes, glGetString(GL_VERSION) reports "1.2 APPLE-1.5.48" on my
> laptop but "3.2.0" on the Windows box.
> Guess it's time to try to track down where framebuffers are stored
> when they aren't in OpenGL.GL.EXT. Thanks for the pointer.
and modified my code as follows:
- from OpenGL.GL.EXT.framebuffer_object import *
+ from OpenGL.GL.framebufferobjects import *
Main drawing code:
# megaTileFramebuffer is a global singleton from
megaTileFramebuffer) # error occurs here
glViewport(0, 0, megaTilePixelSize, megaTilePixelSize)
glOrtho(-.375, viewer.m_w - .375,
-.375, viewer.m_h - .375,
glScalef(megaTileScaleFactor, megaTileScaleFactor, 1)
glTranslatef(-self.pos, -self.pos, 0)print glGetString(GL_VERSION)
for tile in newTiles:
I'm now getting a 1282 error (invalid operation) the first time
glBindFramebuffer is called. I'm having a devil of a time finding
examples for how this is supposed to work that are for OpenGL 3, but
as far as I can tell from the "OpenGL API 3.2 API Quick Reference
Card" PDF I downloaded, I'm doing this correctly.
I've also tried using GL_FRAMEBUFFER instead of GL_DRAW_FRAMEBUFFER,
and using self.texture instead of megaTileFramebuffer; either or both
cause the same error at the same point. It seems like OpenGL just
doesn't want me to call glBindFramebuffer at that point in execution.
Is there some kind of preparation I'm supposed to have performed