From f72013defa57375d4c69b62622aece7f8a92a271 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 8 Aug 2005 16:00:15 +0000 Subject: [PATCH] Win32: Fixed SIS/VIA crashes --- src/native/win32/extgl_wgl.c | 4 ++-- .../win32/org_lwjgl_opengl_Win32ContextImplementation.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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;