8057830: Crash in Java2D Queue Flusher, OGLSD_SetScratchSurface
Reviewed-by: serb, denis
This commit is contained in:
parent
562ef36160
commit
7a54433a74
@ -72,7 +72,9 @@ OGLGC_DestroyOGLGraphicsConfig(jlong pConfigInfo)
|
||||
}
|
||||
[pool drain];
|
||||
free(ctxinfo);
|
||||
oglc->ctxInfo = NULL;
|
||||
}
|
||||
cglinfo->context = NULL;
|
||||
}
|
||||
|
||||
free(cglinfo);
|
||||
|
@ -187,6 +187,11 @@ OGLSD_SetScratchSurface(JNIEnv *env, jlong pConfigInfo)
|
||||
}
|
||||
|
||||
OGLContext *oglc = cglInfo->context;
|
||||
if (oglc == NULL) {
|
||||
J2dRlsTraceLn(J2D_TRACE_ERROR, "OGLSD_SetScratchContext: ogl context is null");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
CGLCtxInfo *ctxinfo = (CGLCtxInfo *)oglc->ctxInfo;
|
||||
|
||||
JNF_COCOA_ENTER(env);
|
||||
|
Loading…
Reference in New Issue
Block a user