From 3f4b11f495417423f70bdb730cfd4a37cc6ccf07 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 11 Nov 2002 21:05:02 +0000 Subject: [PATCH] store and log opengl version --- stepmania/src/RageDisplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/RageDisplay.cpp b/stepmania/src/RageDisplay.cpp index 3764628e26..9c0fd01998 100644 --- a/stepmania/src/RageDisplay.cpp +++ b/stepmania/src/RageDisplay.cpp @@ -42,6 +42,7 @@ RageTimer g_LastCheckTimer; int g_iNumVerts; float g_fLastCheckTime; int g_iFPS, g_iVPF, g_iDPF; +int g_glVersion; int RageDisplay::GetFPS() const { return g_iFPS; } int RageDisplay::GetVPF() const { return g_iVPF; } @@ -112,6 +113,9 @@ 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)); + LOG->Trace( "OpenGL version %.1f", g_glVersion / 10.); + /* * Set up OpenGL for 2D rendering. */