these did not do what they were supposed to do and broke the GL flavor

This commit is contained in:
pvalchev 2001-05-11 00:32:56 +00:00
parent c28d05ab47
commit 2c6a39da72
2 changed files with 0 additions and 26 deletions

View File

@ -1,13 +0,0 @@
$OpenBSD: patch-src_video_cybergfx_SDL_cgxgl_c,v 1.1 2001/05/09 22:28:25 pvalchev Exp $
--- src/video/cybergfx/SDL_cgxgl.c.orig Fri Apr 20 23:39:49 2001
+++ src/video/cybergfx/SDL_cgxgl.c Fri Apr 20 23:42:13 2001
@@ -329,6 +329,9 @@ int CGX_GL_LoadLibrary(_THIS, const char
dlopen_flags = RTLD_LAZY;
#endif
handle = dlopen(path, dlopen_flags);
+#if defined __OpenBSD__ && !defined __ELF__
+#define dlsym(x,y) dlsym(x, "_" y)
+#endif
/* Catch the case where the application isn't linked with GL */
if ( (dlsym(handle, "glXChooseVisual") == NULL) && (path == NULL) ) {
dlclose(handle);

View File

@ -1,13 +0,0 @@
$OpenBSD: patch-src_video_x11_SDL_x11gl_c,v 1.1 2001/05/09 22:28:25 pvalchev Exp $
--- src/video/x11/SDL_x11gl.c.orig Fri Apr 20 23:43:30 2001
+++ src/video/x11/SDL_x11gl.c Fri Apr 20 23:43:31 2001
@@ -343,6 +343,9 @@ int X11_GL_LoadLibrary(_THIS, const char
#endif
handle = dlopen(path, dlopen_flags);
/* Catch the case where the application isn't linked with GL */
+#if defined __OpenBSD__ && !defined __ELF__
+#define dlsym(x,y) dlsym(x, "_" y)
+#endif
if ( (dlsym(handle, "glXChooseVisual") == NULL) && (path == NULL) ) {
dlclose(handle);
path = getenv("SDL_VIDEO_GL_DRIVER");