glGetInteger with GL_READ_FRAMEBUFFER_BINDING
Ákos Tóth <[email protected]> Mon, 14 Apr 2014 15:54:26 +0200
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CACxAQjV_iAd7vyUsCBKxsW=OgwQt9fHP1SZ63X6WkFrS4wNbTA@mail.gmail.com> |
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.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users