summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-03 07:54:53 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-03 07:54:53 +0000
commit4fdafe9f1d0baa7806aa2bd17f7fe674bd193f38 (patch)
tree65848de72e9bd565a6c134a8b96a4d650af1e564 /Graphics/GraphicsEngineOpenGL
parentFixed UWP build plus bug in Win32NativeWindow ctor (diff)
downloadDiligentCore-4fdafe9f1d0baa7806aa2bd17f7fe674bd193f38.tar.gz
DiligentCore-4fdafe9f1d0baa7806aa2bd17f7fe674bd193f38.zip
Updated LinuxNativeWindow
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;