No matching GL pixel format available

Mikeii131

New Member
Dec 29, 2021
1
0
I've been trying to start any game that uses renpy for a while, but I keep getting the same error.
I have already updated the drivers, what else can I do to make this work?


I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 207, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 445, in script
$ __gl_test()
File "renpy/common/00start.rpy", line 207, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 445, in script
$ __gl_test()
File "renpy/common/00gltest.rpy", line 445, in <module>
$ __gl_test()
File "renpy/common/00gltest.rpy", line 359, in _m1_00gltest__gl_test
_gl_performance_test()
File "renpy/common/00gltest.rpy", line 384, in _gl_performance_test
ui.interact(suppress_underlay=True, suppress_overlay=True)
error: No matching GL pixel format available

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\bootstrap.py", line 316, in bootstrap
renpy.main.main()
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\main.py", line 578, in main
run(restart)
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\main.py", line 143, in run
renpy.execution.run_context(True)
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\execution.py", line 908, in run_context
context.run()
File "renpy/common/00start.rpy", line 207, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 445, in script
$ __gl_test()
File "renpy/common/00start.rpy", line 207, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 445, in script
$ __gl_test()
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\ast.py", line 914, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\python.py", line 2028, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/00gltest.rpy", line 445, in <module>
$ __gl_test()
File "renpy/common/00gltest.rpy", line 359, in _m1_00gltest__gl_test
_gl_performance_test()
File "renpy/common/00gltest.rpy", line 384, in _gl_performance_test
ui.interact(suppress_underlay=True, suppress_overlay=True)
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\ui.py", line 297, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\display\core.py", line 2665, in interact
self.start()
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\display\core.py", line 1805, in start
self.set_mode()
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\display\core.py", line 2045, in set_mode
if draw.set_mode(virtual_size, physical_size, fullscreen):
File "C:\Users\LuisOjeda\Desktop\HSTutor-0.9.5-pc\renpy\display\swdraw.py", line 769, in set_mode
self.screen = pygame.display.set_mode((scaled_width, scaled_height), fsflag, 32)
File "src/pygame_sdl2/display.pyx", line 450, in pygame_sdl2.display.set_mode
File "src/pygame_sdl2/display.pyx", line 168, in pygame_sdl2.display.Window.__init__
error: No matching GL pixel format available

Windows-8-6.2.9200
Ren'Py 7.3.5.606
HSTutor 0.9.5
Tue Dec 28 21:33:53 2021
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,964
16,210
I've been trying to start any game that uses renpy for a while, but I keep getting the same error.
I have already updated the drivers, what else can I do to make this work?
[...]
File "src/pygame_sdl2/display.pyx", line 168, in pygame_sdl2.display.Window.__init__
error: No matching GL pixel format available
The error come from the libsdl and indicate that it can't find a screen format that would more or less match one available on your computer. This apparently seem to happen only when the mismatch regard the color depth, but in the same time you use Win8, and it don't goes below 32bits.

My guess is that you updated the drivers because of another error, and are getting this one since. Therefore it should be in the driver configuration that there's an error ; for whatever reason they present the screen as using 16bits colors. Search online how to change the color depth for your graphic/video card.
 

restrictive

Newbie
Jun 4, 2020
44
44
I did get this error just now and it turned out that it was my own fault.
I tried to run "Melodic Dates" under WINE instead of native with Linux.

So, note to all the other noobs out here:

Renpy games have native linux support. Run them via the *.sh file. (Duh?)