fix constness

This commit is contained in:
Garux 2019-02-22 23:56:17 +03:00
parent 9f80983975
commit d2dceca361

View File

@ -121,10 +121,10 @@ bool QGL_ExtensionSupported( const char* extension ){
#if EXTENSIONS_ENABLED #if EXTENSIONS_ENABLED
const GLubyte *extensions = 0; const GLubyte *extensions = 0;
const GLubyte *start; const GLubyte *start;
GLubyte *where, *terminator; const GLubyte *where, *terminator;
// Extension names should not have spaces. // Extension names should not have spaces.
where = (GLubyte *) strchr( extension, ' ' ); where = (const GLubyte *) strchr( extension, ' ' );
if ( where || *extension == '\0' ) { if ( where || *extension == '\0' ) {
return false; return false;
} }
@ -140,7 +140,7 @@ bool QGL_ExtensionSupported( const char* extension ){
// OpenGL extensions string. Don't be fooled by sub-strings, etc. // OpenGL extensions string. Don't be fooled by sub-strings, etc.
for ( start = extensions; ; ) for ( start = extensions; ; )
{ {
where = (GLubyte *) strstr( (const char *) start, extension ); where = (const GLubyte *) strstr( (const char *) start, extension );
if ( !where ) { if ( !where ) {
break; break;
} }