summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-04-27 12:47:52 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-04-27 12:47:52 +0200
commit1bf5639cb30cfc133f8ca30b3a54074ae4a0527a (patch)
treefebf756265d84c8ff4c80ac60c5c7960240e9544 /vcl
parente112ac81d1c3a91d46ea660ac4e01e6c94ee900e (diff)
Fix mac build: explicitly check all platforms inside swapBuffers
Plus some cosmetics Change-Id: I42d989217a0b40a8a6a03c0ebc6c4aa14b34d387
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 107bcf07a6ff..4daae1c716c6 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -586,7 +586,7 @@ bool OpenGLContext::initWindow()
return true;
}
-#elif defined( MACOSX ) || defined( IOS) || defined( ANDROID )
+#elif defined( MACOSX ) || defined( IOS ) || defined( ANDROID )
bool OpenGLContext::initWindow()
{
@@ -648,7 +648,7 @@ bool OpenGLContext::initWindow()
#endif
-#if defined( WNT ) || defined( MACOSX ) || defined( IOS) || defined( ANDROID )
+#if defined( WNT ) || defined( MACOSX ) || defined( IOS ) || defined( ANDROID )
SystemWindowData OpenGLContext::generateWinData(Window* /*pParent*/)
{
@@ -752,8 +752,10 @@ SystemWindowData OpenGLContext::generateWinData(Window* pParent)
void OpenGLContext::swapBuffers()
{
-#if defined( _WIN32 )
+#if defined( WNT )
SwapBuffers(m_aGLWin.hDC);
+#elif defined( MACOSX ) || defined( IOS ) || defined( ANDROID )
+ // nothing
#elif defined( UNX )
glXSwapBuffers(m_aGLWin.dpy, m_aGLWin.win);
#endif