From 9e1e85007200d5469bf9b90b58801f9bc0eeafcd Mon Sep 17 00:00:00 2001 From: William Reading Date: Sat, 7 Jun 2003 16:37:24 +0000 Subject: [PATCH] Fix video in linux/darwin --- stepmania/src/StepMania.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index a7f99b0b78..b22c445f23 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -254,7 +254,12 @@ RageDisplay *CreateDisplay() */ // Video card changed since last run +#if defined(WIN32) CString sVideoDriver = GetPrimaryVideoDriverName(); +#endif +#if !defined(WIN32) + CString sVideoDriver = "OpenGL"; +#endif if( PREFSMAN->m_sVideoRenderers == "" || PREFSMAN->m_sLastSeenVideoDriver != sVideoDriver ) { @@ -285,7 +290,12 @@ RageDisplay *CreateDisplay() ini.GetValueB( sKey, "AntiAliasing", PREFSMAN->m_bAntiAliasing ); // Update last seen video card +#if defined(WIN32) PREFSMAN->m_sLastSeenVideoDriver = GetPrimaryVideoDriverName(); +#endif +#if !defined(WIN32) + PREFSMAN->m_sLastSeenVideoDriver = "OpenGL"; +#endif break; // stop looking }