Populate jaggl_alpha_bits with cAlphaBits from selected pixel format

master
Graham 5 years ago
parent d7ca52505f
commit 609baccbe0
  1. 6
      gl-natives/src/main/c/jaggl.c

@ -521,7 +521,11 @@ JNIEXPORT jboolean JNICALL Java_jaggl_context_choosePixelFormat1(JNIEnv *env, jc
goto dsi_free; goto dsi_free;
} }
// TODO(gpe): get actual number of alpha bits if (!DescribePixelFormat(jaggl_device, format, sizeof(pfd), &pfd)) {
goto dsi_free;
}
jaggl_alpha_bits = pfd.cAlphaBits;
result = JNI_TRUE; result = JNI_TRUE;
#else #else

Loading…
Cancel
Save