Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11gl.c @ 29:a8360daed17d
Oops, the OpenBSD fix didn't.
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Fri, 11 May 2001 00:35:31 +0000 |
parents | c447d5b9275d |
children | 7edee9f0f2cc |
comparison
equal
deleted
inserted
replaced
28:6e53ad1f461e | 29:a8360daed17d |
---|---|
341 #else | 341 #else |
342 dlopen_flags = RTLD_LAZY; | 342 dlopen_flags = RTLD_LAZY; |
343 #endif | 343 #endif |
344 handle = dlopen(path, dlopen_flags); | 344 handle = dlopen(path, dlopen_flags); |
345 /* Catch the case where the application isn't linked with GL */ | 345 /* Catch the case where the application isn't linked with GL */ |
346 #if defined __OpenBSD__ && !defined __ELF__ | |
347 #define dlsym(x,y) dlsym(x, "_" y) | |
348 #endif | |
349 if ( (dlsym(handle, "glXChooseVisual") == NULL) && (path == NULL) ) { | 346 if ( (dlsym(handle, "glXChooseVisual") == NULL) && (path == NULL) ) { |
350 dlclose(handle); | 347 dlclose(handle); |
351 path = getenv("SDL_VIDEO_GL_DRIVER"); | 348 path = getenv("SDL_VIDEO_GL_DRIVER"); |
352 if ( path == NULL ) { | 349 if ( path == NULL ) { |
353 path = DEFAULT_OPENGL; | 350 path = DEFAULT_OPENGL; |