summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-02-17 04:51:07 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-02-17 04:51:07 +0000
commit782fe442126c68450cfb2742bb0a43196c7ebc6a (patch)
treea57ddefdb99cb4792d8ba1708d5bd2452ed133ca /Graphics/GraphicsEngineOpenGL
parentAdded platform macros in GLSL shaders (diff)
downloadDiligentCore-782fe442126c68450cfb2742bb0a43196c7ebc6a.tar.gz
DiligentCore-782fe442126c68450cfb2742bb0a43196c7ebc6a.zip
Fixed few compiler warnings
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp
index 31f24b71..2cce8cde 100644
--- a/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp
@@ -71,9 +71,9 @@ IMPLEMENT_QUERY_INTERFACE( SwapChainGLImpl, IID_SwapChainGL, TSwapChainBase )
void SwapChainGLImpl::Present()
{
+#if PLATFORM_WIN32 || PLATFORM_LINUX || PLATFORM_ANDROID
auto *pDeviceGL = ValidatedCast<RenderDeviceGLImpl>(m_pRenderDevice.RawPtr());
auto &GLContext = pDeviceGL->m_GLContext;
-#if PLATFORM_WIN32 || PLATFORM_LINUX || PLATFORM_ANDROID
GLContext.SwapBuffers();
#elif PLATFORM_MACOS
LOG_ERROR("Swap buffers operation must be performed by the app on MacOS");