mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Use GLX calls to get window handle on Linux/BSD instead of X11 calls. (#810)
This commit is contained in:
committed by
Branimir Karadžić
parent
d3ca74be68
commit
3de6824ae8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user