diff --git a/src/native/win32/extgl_wgl.c b/src/native/win32/extgl_wgl.c index 3f1c97f9..c4db0e1d 100644 --- a/src/native/win32/extgl_wgl.c +++ b/src/native/win32/extgl_wgl.c @@ -74,8 +74,8 @@ void extgl_Close(void) { static bool WGLQueryExtension(WGLExtensions *extensions, const char *name) { const GLubyte *extension_string; - if (extensions->wglGetExtensionsStringARB == NULL) - if (extensions->wglGetExtensionsStringEXT == NULL) + if (!extensions->WGL_ARB_extensions_string) + if (!extensions->WGL_EXT_extensions_string) return false; else extension_string = (GLubyte*)extensions->wglGetExtensionsStringEXT(); diff --git a/src/native/win32/org_lwjgl_opengl_Win32ContextImplementation.c b/src/native/win32/org_lwjgl_opengl_Win32ContextImplementation.c index 3db094d8..fa018bb8 100644 --- a/src/native/win32/org_lwjgl_opengl_Win32ContextImplementation.c +++ b/src/native/win32/org_lwjgl_opengl_Win32ContextImplementation.c @@ -58,7 +58,6 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_Win32ContextImplementation_nCrea HGLRC saved_context; WGLExtensions extensions; jobject context_handle = newJavaManagedByteBuffer(env, sizeof(Win32Context)); - if (context_handle == NULL) { throwException(env, "Could not create handle buffer"); return NULL;