summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
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 4c98b44b..7c0dcfa8 100644
--- a/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp
@@ -54,7 +54,7 @@ SwapChainGLImpl::SwapChainGLImpl(IReferenceCounters* pRefCounters,
m_SwapChainDesc.Width = rc.right - rc.left;
m_SwapChainDesc.Height = rc.bottom - rc.top;
#elif PLATFORM_LINUX
- auto wnd = static_cast<Window>(reinterpret_cast<size_t>(InitAttribs.Window.pWindow));
+ auto wnd = InitAttribs.Window.WindowId;
auto display = reinterpret_cast<Display*>(InitAttribs.Window.pDisplay);
XWindowAttributes XWndAttribs;