Revision: 8877
http://svn.sourceforge.net/xbmc/?rev=8877&view=rev
Author: jmarshallnz
Date: 2007-05-11 01:57:32 -0700 (Fri, 11 May 2007)
Log Message:
-----------
fixed: Use SDL_GL_SwapBuffers() in the case of HAS_SDL_OPENGL in splash.
Modified Paths:
--------------
branches/linuxport/XBMC/xbmc/utils/Splash.cpp
Modified: branches/linuxport/XBMC/xbmc/utils/Splash.cpp
===================================================================
--- branches/linuxport/XBMC/xbmc/utils/Splash.cpp 2007-05-11 07:18:58 UTC (rev 8876)
+++ branches/linuxport/XBMC/xbmc/utils/Splash.cpp 2007-05-11 08:57:32 UTC (rev 8877)
@@ -159,10 +159,13 @@
g_graphicsContext.Get3DDevice()->Clear(0, NULL, D3DCLEAR_TARGET, 0, 0, 0);
g_graphicsContext.Get3DDevice()->SetGammaRamp(0, &oldRamp);
g_graphicsContext.Get3DDevice()->Present( NULL, NULL, NULL, NULL );
-#else
+#elif defined(HAS_SDL_2D)
SDL_SetGammaRamp(oldRampRed, oldRampGreen, oldRampBlue);
SDL_Flip(g_graphicsContext.getScreenSurface());
-#endif
+#elif defined(HAS_SDL_OPENGL)
+ SDL_SetGammaRamp(oldRampRed, oldRampGreen, oldRampBlue);
+ SDL_GL_SwapBuffers();
+#endif
g_graphicsContext.Unlock();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|