Linux: Fixed glx
This commit is contained in:
parent
ad92547914
commit
c092c5f367
|
@ -205,12 +205,12 @@ bool extgl_InitGLX(JNIEnv *env, Display *disp, int screen)
|
||||||
if (!extgl_InitGLX12())
|
if (!extgl_InitGLX12())
|
||||||
return false;
|
return false;
|
||||||
extension_flags.GLX12 = true;
|
extension_flags.GLX12 = true;
|
||||||
|
if (glXQueryVersion(disp, &major, &minor) != True)
|
||||||
|
return false;
|
||||||
if (major > 1 || (major == 1 && minor >= 3))
|
if (major > 1 || (major == 1 && minor >= 3))
|
||||||
extension_flags.GLX13 = true;
|
extension_flags.GLX13 = true;
|
||||||
extgl_InitGLX13(env);
|
extgl_InitGLX13(env);
|
||||||
extgl_InitGLXSupportedExtensions(env, disp, screen);
|
extgl_InitGLXSupportedExtensions(env, disp, screen);
|
||||||
if (glXQueryVersion(disp, &major, &minor) != True)
|
|
||||||
return false;
|
|
||||||
extgl_InitGLXSGISwapControl(env);
|
extgl_InitGLXSGISwapControl(env);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue