From 324b2ab1cf59c21ef489be204266d7ece1dbc360 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 30 Jun 2003 06:23:42 +0000 Subject: [PATCH] #pragma comment is win32 only fix warning --- stepmania/src/RageDisplay_OGL.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index c869cf3839..04906f9850 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -64,7 +64,9 @@ namespace GLExt { #include +#ifdef WIN32 #pragma comment(lib, "opengl32.lib") +#endif // // Globals @@ -381,7 +383,7 @@ fail: void SetupExtensions() { - double fGLVersion = atof( (const char *) glGetString(GL_VERSION) ); + const float fGLVersion = (float) atof( (const char *) glGetString(GL_VERSION) ); g_glVersion = int(roundf(fGLVersion * 10)); GetGLExtensions(g_glExts);