summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-03 08:47:10 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-03 08:47:10 +0000
commit07d8923731be45e635cba2a7dfd8122e72bc31e6 (patch)
treef0dd13ba984e08a27d5f75951f1103d397440fc5 /Graphics/GraphicsEngineOpenGL
parentFixed another linux build issue (diff)
downloadDiligentCore-07d8923731be45e635cba2a7dfd8122e72bc31e6.tar.gz
DiligentCore-07d8923731be45e635cba2a7dfd8122e72bc31e6.zip
Fixed yet another linux build issue
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp b/Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp
index e091b8cc..a8e2e852 100644
--- a/Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp
@@ -157,7 +157,7 @@ GLContext::~GLContext()
void GLContext::SwapBuffers()
{
- if (m_WindowId != nullptr && m_pDisplay != nullptr)
+ if (m_WindowId != 0 && m_pDisplay != nullptr)
{
auto wnd = static_cast<Window>(m_WindowId);
auto display = reinterpret_cast<Display*>(m_pDisplay);