Linux fix fallback

This commit is contained in:
Elias Naur 2004-07-03 12:06:25 +00:00
parent da4eb2b1d0
commit 33611232f3
1 changed files with 3 additions and 1 deletions

View File

@ -448,7 +448,9 @@ GLXFBConfig *chooseVisualGLX13(JNIEnv *env, jobject pixel_format, bool use_displ
if (use_display_bpp) {
bpp = XDefaultDepthOfScreen(XScreenOfDisplay(getDisplay(), getCurrentScreen()));
GLXFBConfig *configs = chooseVisualGLX13FromBPP(env, pixel_format, bpp, drawable_type, double_buffer);
if (configs == NULL)
if (configs != NULL)
return configs;
else
bpp = 16;
} else
bpp = (int)env->GetIntField(pixel_format, env->GetFieldID(cls_pixel_format, "bpp", "I"));