clsdaniel / carcode

Automatically exported from code.google.com/p/carcode
0 stars 0 forks source link

pygame error running 'python carcode.py' #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I run 'python carcode.py' in the current gsoc08 branch on Ubuntu I get
this error:

$ python carcode.py
Traceback (most recent call last):
  File "carcode.py", line 38, in <module>
    main()
  File "carcode.py", line 32, in main
    app = CarcodeApp(800, 600)
  File "/home/toby/svn/carcode/branches/gsoc08/libcarcode/app.py", line 74,
in __init__
    self.screen = pygame.display.set_mode((width, height), OPENGL | DOUBLEBUF)
pygame.error: Couldn't find matching GLX visual

Original issue reported on code.google.com by tjdonald...@gmail.com on 5 Aug 2008 at 5:44

GoogleCodeExporter commented 9 years ago
I think it could be the stencil buffer causing the problem, this buffer is used 
to 
clip controls and text, most implementations support it but not all support the 
same stencil size, I added code to test common stencils sizes and to disable it 
completely on failure.

Originally I set the stencil buffer size to 1, but looking around most 
implementations does not support this size and some simply round to the next 
size, 
for example Nvidia drivers round it to 8.

Please check r330 or later to see if it fixes this problem, also if posible 
post 
the output of glxinfo as an attachment.

Original comment by clsdan...@gmail.com on 7 Aug 2008 at 10:27