#pragma comment is win32 only

fix warning
This commit is contained in:
Glenn Maynard
2003-06-30 06:23:42 +00:00
parent 13774d47e8
commit 324b2ab1cf
+3 -1
View File
@@ -64,7 +64,9 @@ namespace GLExt {
#include <math.h>
#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);