pygame not detecting OpenGL support in drivers

Issue #301 invalid
Morten Lied Johansen
created an issue

Pygame thinks my X11 driver isn't configured for OpenGL. As far as I can tell, it's wrong

>>> import pygame
>>> pygame.display.init()
>>> pygame.display.set_mode((640, 480), pygame.HWSURFACE | pygame.OPENGL | pygame.DOUBLEBUF)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
pygame.error: X11 driver not configured with OpenGL

glxinfo indicates that direct rendering is enabled.

$ glxinfo | grep "direct rendering"
direct rendering: Yes

glxgears works fine. I'm using the nvidia-drivers.

I don't know what could be the cause of this, or which bits of information would be needed to troubleshoot this problem, so please tell me what you would need of additional information.

Comments (1)

  1. Log in to comment