diff options
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp | 2 |
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); |
