From 07d8923731be45e635cba2a7dfd8122e72bc31e6 Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 3 Feb 2020 00:47:10 -0800 Subject: Fixed yet another linux build issue --- Graphics/GraphicsEngineOpenGL/src/GLContextLinux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineOpenGL') 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(m_WindowId); auto display = reinterpret_cast(m_pDisplay); -- cgit v1.2.3