Fixed little compile error in RageDisplay and fixed error in README

This commit is contained in:
Chris Danford
2002-11-12 00:59:19 +00:00
parent 5673bec6f2
commit b4a16fc246
5 changed files with 15 additions and 20 deletions
+2 -1
View File
@@ -134,7 +134,8 @@ void RageDisplay::SetVideoMode( bool windowed, int width, int height, int bpp, R
if(!g_screen)
throw RageException("Failed to open screen!");
g_glVersion = int(roundf(atof((const char *) glGetString(GL_VERSION)) * 10));
float 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())