Hi,

using GL_MAX_TEXTURE_BUFFER_SIZE_ARB ends up with an error

from OpenGL.GL.ARB.texture_buffer_object import *

ver = glGetString( GL_VERSION )
ven = glGetString( GL_VENDOR )

print 'vendor: %s\nversion: %s\nExtensions supported:\n' % (ven,ver)

print 'OpenGL.GL.ARB.texture_buffer_object %d\n' % glInitTextureBufferObjectARB()
print glGetIntegerv( GL_MAX_TEXTURE_BUFFER_SIZE_ARB )


output:

vendor: NVIDIA Corporation
version: 4.0.0
Extensions supported:

OpenGL.GL.ARB.texture_buffer_object 1

Traceback (most recent call last):
  File "c:\Python27\lib\site-packages\OpenGL\GLUT\special.py", line 120, in safeCall
    return function( *args, **named )
  File "lesson3.py", line 95, in DrawGLScene
    log_opengl_info()
  File "lesson3.py", line 63, in log_opengl_info
    print glGetIntegerv( GL_MAX_TEXTURE_BUFFER_SIZE_ARB )
  File "c:\Python27\lib\site-packages\OpenGL\latebind.py", line 45, in __call__
    return self._finalCall( *args, **named )
  File "c:\Python27\lib\site-packages\OpenGL\wrapper.py", line 570, in wrapperCall
    cArgs = tuple(calculate_cArgs( pyArgs ))
  File "c:\Python27\lib\site-packages\OpenGL\wrapper.py", line 373, in calculate_cArgs
    yield converter( pyArgs, index, self )
  File "c:\Python27\lib\site-packages\OpenGL\converters.py", line 194, in __call__
    return self.arrayType.zeros( self.getSize(pyArgs) )
  File "c:\Python27\lib\site-packages\OpenGL\converters.py", line 233, in getSize
    raise KeyError( """Unknown specifier %s"""%( specifier ))
KeyError: ('Unknown specifier GL_MAX_TEXTURE_BUFFER_SIZE_ARB (35883)', 'Failure in cConverter <OpenGL.converters.SizedOutput object
at 0x0000000002BE71C8>', (GL_MAX_TEXTURE_BUFFER_SIZE_ARB,), 1, <OpenGL.wrapper.glGetIntegerv object at 0x0000000002E9C288>)
GLUT Idle callback <function DrawGLScene at 0x0000000003645D68> with (),{} failed: returning None ('Unknown specifier GL_MAX_TEXTURE_BUFFER_SIZE_ARB (35883)', 
'Failure in cConverter <OpenGL.converters.SizedOutput object at 0x0000000002BE71C8>', (GL_MAX_TEXTURE_BUFFER_SIZE_ARB,), 1, 
<OpenGL.wrapper.glGetIntegerv object at 0x0000000002E9C288>)

What is wrong here?

thanks
-mab