fix version
This commit is contained in:
@@ -134,8 +134,8 @@ void RageDisplay::SetVideoMode( bool windowed, int width, int height, int bpp, R
|
|||||||
if(!g_screen)
|
if(!g_screen)
|
||||||
throw RageException("Failed to open screen!");
|
throw RageException("Failed to open screen!");
|
||||||
|
|
||||||
float fGLVersion = atof( (const char *) glGetString(GL_VERSION) );
|
double fGLVersion = atof( (const char *) glGetString(GL_VERSION) );
|
||||||
g_glVersion = int(roundf(fGLVersion) * 10);
|
g_glVersion = int(roundf(fGLVersion * 10));
|
||||||
LOG->Trace( "OpenGL version %.1f", g_glVersion / 10.);
|
LOG->Trace( "OpenGL version %.1f", g_glVersion / 10.);
|
||||||
GetGLExtensions(g_glExts);
|
GetGLExtensions(g_glExts);
|
||||||
if(g_glExts.find("GL_EXT_texture_env_combine") != g_glExts.end())
|
if(g_glExts.find("GL_EXT_texture_env_combine") != g_glExts.end())
|
||||||
|
|||||||
Reference in New Issue
Block a user