diff src/video/x11/SDL_x11gl.c @ 3905:0e0883cb7137 SDL-1.2

Add error message if not using SDL_LoadObject
author Patrice Mandin <patmandin@gmail.com>
date Sun, 14 Jan 2007 14:24:36 +0000
parents 9d940db55a91
children cb04355ffec4
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gl.c	Thu Jan 11 20:33:13 2007 +0000
+++ b/src/video/x11/SDL_x11gl.c	Sun Jan 14 14:24:36 2007 +0000
@@ -479,7 +479,11 @@
 
 	handle = GL_LoadObject(path);
 	if ( handle == NULL ) {
+#if defined(OPENGL_REQUIRS_DLOPEN) && defined(SDL_LOADSO_DLOPEN)
+		SDL_SetError("Failed loading %s", path);
+#else
 		/* SDL_LoadObject() will call SDL_SetError() for us. */
+#endif
 		return -1;
 	}