emit a message gl dlopen fails, rather than segfaulting

This commit is contained in:
arQon 2016-12-23 11:05:47 -08:00
parent 5b51b6ba5d
commit 3ea8c861a1

View file

@ -1195,6 +1195,11 @@ qboolean QGL_Init( const char *dllname )
#endif
}
if ( glw_state.OpenGLLib == 0 ) {
ri.Printf( PRINT_ALL, "QGL_Init: Failed to load %s: %s\n", dllname, dlerror() );
return qfalse;
}
/* @brut: i don't know who did this, but it's blatantly Shit And Wrong
if (glw_state.OpenGLLib == 0)
{