mirror of
https://github.com/UberGames/ioef.git
synced 2024-12-01 00:21:19 +00:00
fix warning about cast from integer to pointer
This commit is contained in:
parent
194c60d2a3
commit
64025e68f0
1 changed files with 2 additions and 2 deletions
|
@ -3074,7 +3074,7 @@ qboolean QGL_Init( const char *dllname )
|
||||||
#if USE_SDL_VIDEO
|
#if USE_SDL_VIDEO
|
||||||
if (GLimp_sdl_init_video() == qfalse)
|
if (GLimp_sdl_init_video() == qfalse)
|
||||||
return qfalse;
|
return qfalse;
|
||||||
glw_state.OpenGLLib = (void*) ((SDL_GL_LoadLibrary(dllname) == -1) ? 0 : 1);
|
glw_state.OpenGLLib = (void*)(long)((SDL_GL_LoadLibrary(dllname) == -1) ? 0 : 1);
|
||||||
#else
|
#else
|
||||||
glw_state.OpenGLLib = dlopen( dllname, RTLD_LAZY|RTLD_GLOBAL );
|
glw_state.OpenGLLib = dlopen( dllname, RTLD_LAZY|RTLD_GLOBAL );
|
||||||
#endif
|
#endif
|
||||||
|
@ -3092,7 +3092,7 @@ qboolean QGL_Init( const char *dllname )
|
||||||
Q_strcat(fn, sizeof(fn), dllname);
|
Q_strcat(fn, sizeof(fn), dllname);
|
||||||
|
|
||||||
#if USE_SDL_VIDEO
|
#if USE_SDL_VIDEO
|
||||||
glw_state.OpenGLLib = (void*) ((SDL_GL_LoadLibrary(fn) == -1) ? 0 : 1);
|
glw_state.OpenGLLib = (void*)(long)((SDL_GL_LoadLibrary(fn) == -1) ? 0 : 1);
|
||||||
#else
|
#else
|
||||||
glw_state.OpenGLLib = dlopen( fn, RTLD_LAZY );
|
glw_state.OpenGLLib = dlopen( fn, RTLD_LAZY );
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue