Hi,

yes I did. Here's the full code I'm using:

"""Log opengl info for this machine"""

from OpenGL.GL import *
from OpenGL.GLUT import *
from OpenGL.GL.ARB.texture_buffer_object import *


def InitGL(Width, Height):
glClearColor(0.0, 0.0, 0.0, 0.0)
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
glMatrixMode(GL_MODELVIEW)
 
 
def log_opengl_info():
  ver = glGetString( GL_VERSION )
  ven = glGetString( GL_VENDOR )
  ren = glGetString( GL_RENDERER )
 
  print 'vendor: %s\nopenl version: %s\nrenderer: %s\nsupported extensions:' % (ven,ver,ren)
  #print '\n'.join( glGetString( GL_EXTENSIONS ).split(' ') )

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

def render():
glClear(GL_COLOR_BUFFER_BIT)
glLoadIdentity()
log_opengl_info()

window = None
def main():
global window
glutInit(sys.argv)
glutInitDisplayMode(GLUT_RGBA)

glutInitWindowSize(10, 10)

glutInitWindowPosition(0, 0)

window = glutCreateWindow('log opengl info')

glutDisplayFunc(render)

# Initialize our window. 
InitGL(10, 10)

# Start Event Processing Engine    
glutMainLoop()


if __name__ == "__main__":
    main()



From: asegovi@gmail.com
Date: Tue, 5 Jul 2011 10:14:14 -0300
Subject: Re: [PyOpenGL-Users] error using GL_MAX_TEXTURE_BUFFER_SIZE_ARB
To: mabxsi@hotmail.com
CC: pyopengl-users@lists.sourceforge.net

Hi Mab,

Hi,

using GL_MAX_TEXTURE_BUFFER_SIZE_ARB ends up with an error
 

Have you tried creating a window with an OpenGL context before trying to call glGetIntegerv?

Alejandro.-
 
--  
http://alejandrosegovia.net