|
|
|
@ -308,10 +308,6 @@ GLFWbool _glfwInitGLX(void) |
|
|
|
|
_glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXCreateWindow"); |
|
|
|
|
_glfw.glx.DestroyWindow = (PFNGLXDESTROYWINDOWPROC) |
|
|
|
|
_glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXDestroyWindow"); |
|
|
|
|
_glfw.glx.GetProcAddress = (PFNGLXGETPROCADDRESSPROC) |
|
|
|
|
_glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetProcAddress"); |
|
|
|
|
_glfw.glx.GetProcAddressARB = (PFNGLXGETPROCADDRESSPROC) |
|
|
|
|
_glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetProcAddressARB"); |
|
|
|
|
_glfw.glx.GetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGPROC) |
|
|
|
|
_glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetVisualFromFBConfig"); |
|
|
|
|
|
|
|
|
@ -327,8 +323,6 @@ GLFWbool _glfwInitGLX(void) |
|
|
|
|
!_glfw.glx.CreateNewContext || |
|
|
|
|
!_glfw.glx.CreateWindow || |
|
|
|
|
!_glfw.glx.DestroyWindow || |
|
|
|
|
!_glfw.glx.GetProcAddress || |
|
|
|
|
!_glfw.glx.GetProcAddressARB || |
|
|
|
|
!_glfw.glx.GetVisualFromFBConfig) |
|
|
|
|
{ |
|
|
|
|
_glfwInputError(GLFW_PLATFORM_ERROR, |
|
|
|
@ -336,6 +330,12 @@ GLFWbool _glfwInitGLX(void) |
|
|
|
|
return GLFW_FALSE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// NOTE: Unlike GLX 1.3 entry points these are not required to be present
|
|
|
|
|
_glfw.glx.GetProcAddress = (PFNGLXGETPROCADDRESSPROC) |
|
|
|
|
_glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetProcAddress"); |
|
|
|
|
_glfw.glx.GetProcAddressARB = (PFNGLXGETPROCADDRESSPROC) |
|
|
|
|
_glfwPlatformGetModuleSymbol(_glfw.glx.handle, "glXGetProcAddressARB"); |
|
|
|
|
|
|
|
|
|
if (!glXQueryExtension(_glfw.x11.display, |
|
|
|
|
&_glfw.glx.errorBase, |
|
|
|
|
&_glfw.glx.eventBase)) |
|
|
|
|