Win32: Fixed SIS/VIA crashes
This commit is contained in:
parent
e98e4029cb
commit
f72013defa
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue