From 297949b7c5194ec3fae8feade52f8610a47a1e9d Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 21 Jan 2006 13:00:51 +0000 Subject: [PATCH] If the OGL context changes, we must set the display mode and we must set vsync. --- stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm index 09b889c841..6275a54336 100644 --- a/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm +++ b/stepmania/src/arch/LowLevelWindow/LowLevelWindow_Cocoa.mm @@ -190,11 +190,11 @@ CString LowLevelWindow_Cocoa::TryVideoMode( const VideoModeParams& p, bool& newD #define X(x) p.x != m_CurrentParams.x const bool bRebuildContext = X(bpp) || X(windowed) || !m_Context; - const bool bChangeMode = X(bpp) || X(width) || X(height) || X(rate); - const bool bChangeVsync = X(vsync); + const bool bChangeMode = X(width) || X(height) || X(rate) || bRebuildContext; + const bool bChangeVsync = X(vsync) || bRebuildContext; #undef X - if( !bRebuildContext && !bChangeMode && !bChangeVsync ) + if( !bChangeMode && !bChangeVsync ) return CString(); POOL;