mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
* Fix to some warnings in linux_glimp.c
This commit is contained in:
parent
d4bd2fd737
commit
363c0d4eba
2 changed files with 6 additions and 6 deletions
|
@ -1175,7 +1175,7 @@ int GLW_SetMode( const char *drivername, int mode, qboolean fullscreen )
|
||||||
qglXMakeCurrent(dpy, win, ctx);
|
qglXMakeCurrent(dpy, win, ctx);
|
||||||
|
|
||||||
// bk001130 - from cvs1.17 (mkv)
|
// bk001130 - from cvs1.17 (mkv)
|
||||||
glstring = qglGetString (GL_RENDERER);
|
glstring = (char *)qglGetString (GL_RENDERER);
|
||||||
ri.Printf( PRINT_ALL, "GL_RENDERER: %s\n", glstring );
|
ri.Printf( PRINT_ALL, "GL_RENDERER: %s\n", glstring );
|
||||||
|
|
||||||
// bk010122 - new software token (Indirect)
|
// bk010122 - new software token (Indirect)
|
||||||
|
@ -1499,12 +1499,12 @@ void GLimp_Init( void )
|
||||||
glConfig.hardwareType = GLHW_GENERIC;
|
glConfig.hardwareType = GLHW_GENERIC;
|
||||||
|
|
||||||
// get our config strings
|
// get our config strings
|
||||||
Q_strncpyz( glConfig.vendor_string, qglGetString (GL_VENDOR), sizeof( glConfig.vendor_string ) );
|
Q_strncpyz( glConfig.vendor_string, (char *)qglGetString (GL_VENDOR), sizeof( glConfig.vendor_string ) );
|
||||||
Q_strncpyz( glConfig.renderer_string, qglGetString (GL_RENDERER), sizeof( glConfig.renderer_string ) );
|
Q_strncpyz( glConfig.renderer_string, (char *)qglGetString (GL_RENDERER), sizeof( glConfig.renderer_string ) );
|
||||||
if (*glConfig.renderer_string && glConfig.renderer_string[strlen(glConfig.renderer_string) - 1] == '\n')
|
if (*glConfig.renderer_string && glConfig.renderer_string[strlen(glConfig.renderer_string) - 1] == '\n')
|
||||||
glConfig.renderer_string[strlen(glConfig.renderer_string) - 1] = 0;
|
glConfig.renderer_string[strlen(glConfig.renderer_string) - 1] = 0;
|
||||||
Q_strncpyz( glConfig.version_string, qglGetString (GL_VERSION), sizeof( glConfig.version_string ) );
|
Q_strncpyz( glConfig.version_string, (char *)qglGetString (GL_VERSION), sizeof( glConfig.version_string ) );
|
||||||
Q_strncpyz( glConfig.extensions_string, qglGetString (GL_EXTENSIONS), sizeof( glConfig.extensions_string ) );
|
Q_strncpyz( glConfig.extensions_string, (char *)qglGetString (GL_EXTENSIONS), sizeof( glConfig.extensions_string ) );
|
||||||
|
|
||||||
//
|
//
|
||||||
// chipset specific configuration
|
// chipset specific configuration
|
||||||
|
|
|
@ -1113,7 +1113,7 @@ qboolean GLimp_SpawnRenderThread( void (*function)( void ) )
|
||||||
warned = qtrue;
|
warned = qtrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !MACOS_X
|
#ifndef MACOS_X
|
||||||
return qfalse; /* better safe than sorry for now. */
|
return qfalse; /* better safe than sorry for now. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue