Linux: Fixed glx

This commit is contained in:
Elias Naur 2005-02-23 14:16:57 +00:00
parent ad92547914
commit c092c5f367
1 changed files with 2 additions and 2 deletions

View File

@ -205,12 +205,12 @@ bool extgl_InitGLX(JNIEnv *env, Display *disp, int screen)
if (!extgl_InitGLX12())
return false;
extension_flags.GLX12 = true;
if (glXQueryVersion(disp, &major, &minor) != True)
return false;
if (major > 1 || (major == 1 && minor >= 3))
extension_flags.GLX13 = true;
extgl_InitGLX13(env);
extgl_InitGLXSupportedExtensions(env, disp, screen);
if (glXQueryVersion(disp, &major, &minor) != True)
return false;
extgl_InitGLXSGISwapControl(env);
return true;
}