Linux: Fixed fetch of a boolean field with GetIntField JNI

This commit is contained in:
Elias Naur 2006-07-10 15:29:29 +00:00
parent 292839a5be
commit 6be8bc806e
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ bool initPeerInfo(JNIEnv *env, jobject peer_info_handle, Display *display, int s
throwException(env, "Samples > 0 specified but there's no support for GLX_ARB_multisample");
return false;
}
bool floating_point = (bool)(*env)->GetIntField(env, pixel_format, (*env)->GetFieldID(env, cls_pixel_format, "floating_point", "Z"));
bool floating_point = (bool)(*env)->GetBooleanField(env, pixel_format, (*env)->GetFieldID(env, cls_pixel_format, "floating_point", "Z"));
if (floating_point && !extension_flags.GLX_ARB_fbconfig_float) {
throwException(env, "Floating point specified but there's no support for GLX_ARB_fbconfig_float");
return false;