Skip to content

Commit

Permalink
Fixed bug 5208 - Fix libGL loading on OpenBSD
Browse files Browse the repository at this point in the history
Brad Smith

Attached is a patch to fix libGL loading on OpenBSD. The major versioning should not be hardcoded.
  • Loading branch information
slouken committed Jun 23, 2020
1 parent 6f1afbb commit dfc969b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/video/x11/SDL_x11gl.c
Expand Up @@ -26,15 +26,13 @@
#include "SDL_x11dga_c.h"
#include "SDL_x11gl_c.h"

#if defined(__IRIX__)
#if defined(__IRIX__) || defined(__OpenBSD__)
/* IRIX doesn't have a GL library versioning system */
#define DEFAULT_OPENGL "libGL.so"
#elif defined(__MACOSX__)
#define DEFAULT_OPENGL "/usr/X11R6/lib/libGL.1.dylib"
#elif defined(__QNXNTO__)
#define DEFAULT_OPENGL "libGL.so.3"
#elif defined(__OpenBSD__)
#define DEFAULT_OPENGL "libGL.so.4.0"
#else
#define DEFAULT_OPENGL "libGL.so.1"
#endif
Expand Down

0 comments on commit dfc969b

Please sign in to comment.