mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
emit a message gl dlopen fails, rather than segfaulting
This commit is contained in:
parent
5b51b6ba5d
commit
3ea8c861a1
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue