From 3de6824ae8eff41fe32876b783ab16018299b02c Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Thu, 23 Jun 2016 07:13:43 +0200 Subject: [PATCH] Use GLX calls to get window handle on Linux/BSD instead of X11 calls. (#810) --- include/bgfx/bgfxplatform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bgfx/bgfxplatform.h b/include/bgfx/bgfxplatform.h index 1912c05b9..4984d68e8 100644 --- a/include/bgfx/bgfxplatform.h +++ b/include/bgfx/bgfxplatform.h @@ -316,7 +316,7 @@ namespace bgfx PlatformData pd; # if BX_PLATFORM_LINUX || BX_PLATFORM_BSD pd.ndt = glfwGetX11Display(); - pd.nwh = (void*)(uintptr_t)glfwGetX11Window(_window); + pd.nwh = (void*)(uintptr_t)glfwGetGLXWindow(_window); pd.context = glfwGetGLXContext(_window); # elif BX_PLATFORM_OSX pd.ndt = NULL;