Could not get native display: How is platformGetNativeDisplay() in AcceleratedScreen realized?
info at cuhka.com
info at cuhka.com
Mon Sep 7 13:53:29 UTC 2015
Have found some further code in MX6AcceleratedScreen.c.
//Vivante specials
static EGLNativeDisplayType (*wr_fbGetDisplayByIndex)(int DisplayIndex);
static EGLNativeWindowType (*wr_fbCreateWindow)(EGLNativeDisplayType
Display, int X, int Y, int Width, int Height);
JNIEXPORT jlong JNICALL
Java_com_sun_glass_ui_monocle_MX6AcceleratedScreen__1platformGetNativeDisplay
(JNIEnv *env, jobject obj, jlong methodHandle) {
EGLNativeDisplayType cachedDisplay = NULL;
if (cachedDisplay == NULL) {
wr_fbGetDisplayByIndex = asPtr(methodHandle);
cachedDisplay = wr_fbGetDisplayByIndex(0);
}
return asJLong(cachedDisplay);
}
Now to find out why this fails. Maybe fbGetDisplayByIndex should use
another value?
Maurice.
More information about the openjfx-dev
mailing list