Win32: Fixed exception message when the ARB pixel format path is selected, but the dummy pixel format is -1.
This commit is contained in:
parent
c68a8ed314
commit
ca4ffed1b1
|
@ -363,7 +363,7 @@ int findPixelFormatOnDC(JNIEnv *env, HDC hdc, jobject pixel_format, jobject pixe
|
|||
bool floating_point = (bool)(*env)->GetIntField(env, pixel_format, (*env)->GetFieldID(env, cls_pixel_format, "floating_point", "Z"));
|
||||
bool use_arb_selection = samples > 0 || floating_point || pbuffer || pixelFormatCaps != NULL;
|
||||
pixel_format_id = findPixelFormatDefault(env, hdc, pixel_format, use_hdc_bpp, double_buffer);
|
||||
if (use_arb_selection) {
|
||||
if (pixel_format_id != -1 && use_arb_selection) {
|
||||
if (!applyPixelFormat(env, hdc, pixel_format_id)) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue