[PyOpenGL-Users] glGetInteger with GL_READ_FRAMEBUFFER_BINDING
Brought to you by:
mcfletch
|
From: Ákos T. <dxm...@gm...> - 2014-04-14 13:54:54
|
While trying to get the currently bound read buffer, I encountered the
following error:
File "/home/marquesas/PycharmProjects/pygrafjatek/pyge/buffer.py", line
56, in blit
previous = glGetInteger(GL_READ_FRAMEBUFFER_BINDING)
File "latebind.pyx", line 32, in
OpenGL_accelerate.latebind.LateBind.__call__
(/tmp/pip_build_root/pyopengl-accelerate/src/latebind.c:989)
File "wrapper.pyx", line 303, in
OpenGL_accelerate.wrapper.Wrapper.__call__
(/tmp/pip_build_root/pyopengl-accelerate/src/wrapper.c:6338)
File "wrapper.pyx", line 88, in
OpenGL_accelerate.wrapper.CArgCalculator.c_call
(/tmp/pip_build_root/pyopengl-accelerate/src/wrapper.c:2984)
File "wrapper.pyx", line 69, in
OpenGL_accelerate.wrapper.CArgCalculatorElement.c_call
(/tmp/pip_build_root/pyopengl-accelerate/src/wrapper.c:2536)
File "wrapper.pyx", line 64, in
OpenGL_accelerate.wrapper.CArgCalculatorElement.c_call
(/tmp/pip_build_root/pyopengl-accelerate/src/wrapper.c:2422)
File "arraydatatype.pyx", line 353, in
OpenGL_accelerate.arraydatatype.SizedOutputOrInput.c_call
(/tmp/pip_build_root/pyopengl-accelerate/src/arraydatatype.c:7180)
File "arraydatatype.pyx", line 346, in
OpenGL_accelerate.arraydatatype.SizedOutput.c_getSize
(/tmp/pip_build_root/pyopengl-accelerate/src/arraydatatype.c:6977)
KeyError: ('Unknown specifier GL_READ_FRAMEBUFFER_BINDING (36010) (lookup =
<built-in method __getitem__ of dict object at 0x7fb6692b8e60>)', 1,
<OpenGL.platform.baseplatform.glGetIntegerv object at 0x7fb6692b7c30>)
This is exclusive to GL_READ_FRAMEBUFFER_BINDING; trying to read
GL_DRAW_FRAMEBUFFER_BINDING works.
|