mirror of https://github.com/encounter/SDL.git
Fixed bug 5075 - Don't assume a GL library version number on NetBSD.
Nia Alarie If you install X as part of NetBSD, the GL library is libGL.so.3, but if you install the GL library later as a package, it's libGL.so.1.
This commit is contained in:
parent
d4b561f472
commit
e05d92a17d
|
@ -32,8 +32,12 @@
|
||||||
#include "SDL_loadso.h"
|
#include "SDL_loadso.h"
|
||||||
#include "SDL_x11opengles.h"
|
#include "SDL_x11opengles.h"
|
||||||
|
|
||||||
#if defined(__IRIX__)
|
#if defined(__IRIX__) || defined(__NetBSD__)
|
||||||
/* IRIX doesn't have a GL library versioning system */
|
/*
|
||||||
|
* IRIX doesn't have a GL library versioning system.
|
||||||
|
* NetBSD has different GL library versions depending on how the library was
|
||||||
|
* installed (package vs. xsrc).
|
||||||
|
*/
|
||||||
#define DEFAULT_OPENGL "libGL.so"
|
#define DEFAULT_OPENGL "libGL.so"
|
||||||
#elif defined(__MACOSX__)
|
#elif defined(__MACOSX__)
|
||||||
#define DEFAULT_OPENGL "/opt/X11/lib/libGL.1.dylib"
|
#define DEFAULT_OPENGL "/opt/X11/lib/libGL.1.dylib"
|
||||||
|
|
Loading…
Reference in New Issue