From: Fabrizio P. <pol...@ir...> - 2006-09-25 14:07:32
|
I am trying to use DRI from python using pyopengl on a Debian/Linux Etch i386 box. The sample code ---- #!/usr/bin/python from OpenGL.GLUT import * import sys glutInit(sys.argv) glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH) glutInitWindowSize(640, 480) glutInitWindowPosition(0, 0) glutCreateWindow("test") glutMainLoop() ---- produces the warning ---- freeglut (./test.py): Unable to create direct context rendering for window 'test' This may hurt performance. ---- and all my code is slow. If I add the GLUT_ALPHA bit to glutInitDisplayMode, the warning becomes an error ---- freeglut (./test.py): ERROR: Internal error <Visual with necessary capabilities not found> in function fgOpenWindow X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 4 (X_DestroyWindow) Resource id in failed request: 0x0 Serial number of failed request: 19 Current serial number in output stream: 22 ---- For more information, I attached the outputs of glxinfo and xdpyinfo. Thank you in advance for any help. Regards, F. Pollastri |