Has anyone come across this before?

Found in 3.0.2 win32

In the following code sequence:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    glEnable(GL_RASTERIZER_DISCARD)
    glBindTransformFeedback(GL_TRANSFORM_FEEDBACK,TxFB_Buffers)       
    glBindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER,0,TxFB_Buffers)    
    glBeginTransformFeedback(GL_TRIANGLES)                                 
    glBeginQuery(GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN,TxFB_Query)
    glDrawElementsui(GL_TRIANGLES,IdxArray)                      
    glEndTransformFeedback()                                                
    glEndQuery(GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN)
    glGetQueryiv(GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN,GL_CURRENT_QUERY,TxFB_count)
    glDisable(GL_RASTERIZER_DISCARD)                                        
    glBindTransformFeedback(GL_TRANSFORM_FEEDBACK,0)

The call to glGetQueryiv yields the following error...

glGetQueryiv(GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN,GL_CURRENT_QUERY,self.TxFB_count)
File "latebind.pyx", line 32, in OpenGL_accelerate.latebind.LateBind.call (src\latebind.c:667)
File "wrapper.pyx", line 296, in OpenGL_accelerate.wrapper.Wrapper.call (src\wrapper.c:5215)
File "wrapper.pyx", line 148, in OpenGL_accelerate.wrapper.PyArgCalculator.c_call (src\wrapper.c:3419)
ValueError: glGetQueryiv requires 2 arguments (target, pname), received 3: (GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN, GL_CURRENT_QUERY, c_ulong(0L))

glGetQueryiv function signature is definitely 3 parameters, target, pname and param.

I did try moving to 3.1.0b1, but had the following issue with glGenBuffers()...

    buff = glGenBuffers(GLint(1))
  File "latebind.pyx", line 32, in OpenGL_accelerate.latebind.LateBind.__call__ (src\latebind.c:667)
  File "wrapper.pyx", line 300, in OpenGL_accelerate.wrapper.Wrapper.__call__ (src\wrapper.c:5257)
  File "wrapper.pyx", line 87, in OpenGL_accelerate.wrapper.CArgCalculator.c_call (src\wrapper.c:2439)
  File "wrapper.pyx", line 68, in OpenGL_accelerate.wrapper.CArgCalculatorElement.c_call (src\wrapper.c:2064)
  File "wrapper.pyx", line 63, in OpenGL_accelerate.wrapper.CArgCalculatorElement.c_call (src\wrapper.c:1942)
  File "arraydatatype.pyx", line 287, in OpenGL_accelerate.arraydatatype.Output.c_call (src\arraydatatype.c:4827)
  File "arraydatatype.pyx", line 219, in OpenGL_accelerate.arraydatatype.ArrayDatatype.c_zeros (src\arraydatatype.c:4005)
  File "arraydatatype.pyx", line 79, in OpenGL_accelerate.arraydatatype.HandlerRegistry.c_get_output_handler (src\arraydatatype.c:2080)
RuntimeError: ('Unable to find any output handler at all (not even ctypes/numpy ones!)', 1, <OpenGL.platform.baseplatform.glGenBuffers object at 0x02C1C2D8>)


Cheers,

Ed.