Fix video in linux/darwin

This commit is contained in:
William Reading
2003-06-07 16:37:24 +00:00
parent ba827237d2
commit 9e1e850072
+10
View File
@@ -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
}