From d2dceca361a1c118c646199dee1773990e32d30d Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 22 Feb 2019 23:56:17 +0300 Subject: [PATCH] fix constness --- radiant/qgl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radiant/qgl.cpp b/radiant/qgl.cpp index b6c79993..7888b549 100644 --- a/radiant/qgl.cpp +++ b/radiant/qgl.cpp @@ -121,10 +121,10 @@ bool QGL_ExtensionSupported( const char* extension ){ #if EXTENSIONS_ENABLED const GLubyte *extensions = 0; const GLubyte *start; - GLubyte *where, *terminator; + const GLubyte *where, *terminator; // Extension names should not have spaces. - where = (GLubyte *) strchr( extension, ' ' ); + where = (const GLubyte *) strchr( extension, ' ' ); if ( where || *extension == '\0' ) { return false; } @@ -140,7 +140,7 @@ bool QGL_ExtensionSupported( const char* extension ){ // OpenGL extensions string. Don't be fooled by sub-strings, etc. for ( start = extensions; ; ) { - where = (GLubyte *) strstr( (const char *) start, extension ); + where = (const GLubyte *) strstr( (const char *) start, extension ); if ( !where ) { break; }