From ee223ec17875a43533959c55e2cef5cef829a4cc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 12 Nov 2002 01:28:39 +0000 Subject: [PATCH] fix version --- stepmania/src/RageDisplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 2d851516bb..de806d5efd 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -134,8 +134,8 @@ void RageDisplay::SetVideoMode( bool windowed, int width, int height, int bpp, R if(!g_screen) throw RageException("Failed to open screen!"); - float fGLVersion = atof( (const char *) glGetString(GL_VERSION) ); - g_glVersion = int(roundf(fGLVersion) * 10); + double fGLVersion = atof( (const char *) glGetString(GL_VERSION) ); + g_glVersion = int(roundf(fGLVersion * 10)); LOG->Trace( "OpenGL version %.1f", g_glVersion / 10.); GetGLExtensions(g_glExts); if(g_glExts.find("GL_EXT_texture_env_combine") != g_glExts.end())