Index: pyopengl/OpenGL/platform/ctypesloader.py


Subject: [PATCH] Fix issue reported in upstream GitHub pull request #93

Description:
Fixes the issue reported in GitHub pull request #93
See https://github.com/mcfletch/pyopengl/pull/93 for details. 
Without it, tests/check_crash_on_glutinit.py will fail on Debian bookworm or newer.

===================================================================
--- pyopengl.orig/OpenGL/platform/ctypesloader.py
+++ pyopengl/OpenGL/platform/ctypesloader.py
@@ -52,7 +52,7 @@ def _loadLibraryPosix(dllType, name, mod
     suffix = '.so'
     base_name = prefix + name + suffix
     
-    filenames_to_try = []
+    filenames_to_try = [base_name]
     # If a .so is missing, let's try libs with so version (e.g libGLU.so.9, libGLU.so.8 and so on)
     filenames_to_try.extend(list(reversed([
         base_name + '.%i' % i for i in range(0, 10)
