[PyOpenGL-Users] freeglut: Unable to create direct context rendering
Brought to you by:
mcfletch
From: Fabrizio P. <pol...@ir...> - 2006-09-22 10:08:56
|
Hi all, when I run this python script on a Debian/Linux Etch ---- #!/usr/bin/python from OpenGL.GLUT import * import sys glutInit(sys.argv) glutCreateWindow("dri") glutMainLoop() ---- I get the warning " freeglut (./dri.py): Unable to create direct context rendering for window 'dri' This may hurt performance. " and all my python code using OpenGL is slow. On the contrary the equivalent C code ---- #include <GL/glut.h> int main (int argc, char **argv) { glutInit (&argc, argv); glutCreateWindow ("test"); glutMainLoop (); return 0; } ---- runs fine. The command "glxinfo | grep render" returns " direct rendering: Yes OpenGL renderer string: Mesa DRI G400 20050609 AGP 1x " and standard demos (glxgears) runs fine using DRI. Any help will be appreciated. Regards, F. Pollastri. |