Win32: Fixed SIS/VIA crashes

This commit is contained in:
Elias Naur 2005-08-08 16:00:15 +00:00
parent e98e4029cb
commit f72013defa
2 changed files with 2 additions and 3 deletions

View File

@ -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();

View File

@ -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;