mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-15 13:39:06 +00:00
7196866: CTW fails on all Solaris platforms
Reviewed-by: prr, jrose, twisti, kvn
This commit is contained in:
parent
701d77dfd1
commit
19aa94ea70
@ -926,6 +926,11 @@ void TryInitMITShm(JNIEnv *env, jint *shmExt, jint *shmPixmaps) {
|
||||
*shmExt = canUseShmExt = CANT_USE_MITSHM;
|
||||
*shmPixmaps = canUseShmExtPixmaps = CANT_USE_MITSHM;
|
||||
|
||||
if (awt_display == (Display *)NULL) {
|
||||
AWT_NOFLUSH_UNLOCK();
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* XShmQueryExtension returns False in remote server case.
|
||||
* Unfortunately it also returns True in ssh case, so
|
||||
|
||||
@ -267,13 +267,19 @@ Java_sun_java2d_xr_XRBackendNative_initIDs(JNIEnv *env, jclass cls) {
|
||||
char *maskData;
|
||||
XImage* defaultImg;
|
||||
jfieldID maskImgID;
|
||||
jlong fmt8 =
|
||||
ptr_to_jlong(XRenderFindStandardFormat(awt_display, PictStandardA8));
|
||||
jlong fmt32 =
|
||||
ptr_to_jlong(XRenderFindStandardFormat(awt_display, PictStandardARGB32));
|
||||
jlong fmt8;
|
||||
jlong fmt32;
|
||||
|
||||
jfieldID a8ID = (*env)->GetStaticFieldID(env, cls, "FMTPTR_A8", "J");
|
||||
jfieldID argb32ID = (*env)->GetStaticFieldID(env, cls, "FMTPTR_ARGB32", "J");
|
||||
|
||||
if (awt_display == (Display *)NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
fmt8 = ptr_to_jlong(XRenderFindStandardFormat(awt_display, PictStandardA8));
|
||||
fmt32 = ptr_to_jlong(XRenderFindStandardFormat(awt_display, PictStandardARGB32));
|
||||
|
||||
(*env)->SetStaticLongField(env, cls, a8ID, fmt8);
|
||||
(*env)->SetStaticLongField(env, cls, argb32ID, fmt32);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user