Skip to content

Commit

Permalink
Add error message if not using SDL_LoadObject
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jan 14, 2007
1 parent 96fe8ef commit a61ed5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/x11/SDL_x11gl.c
Expand Up @@ -479,7 +479,11 @@ int X11_GL_LoadLibrary(_THIS, const char* path)

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;
}

Expand Down

0 comments on commit a61ed5f

Please sign in to comment.