aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaluca Sauciuc <ralucas@google.com>2020-10-19 10:52:12 -0700
committerRaluca Sauciuc <ralucas@google.com>2020-10-19 10:53:22 -0700
commit34217f039e3236192112aff633ef2adf2a8e8c4c (patch)
tree1237dadec1b0abc8fd6505a5ed36499b9e15fe24
parent86a106a12234cee1498a2159104fcba7f3c0efed (diff)
downloadjdk8u_jdk-34217f039e3236192112aff633ef2adf2a8e8c4c.tar.gz
8244818: Java2D Queue Flusher crash while moving application window to external monitorHEADmastermain
Reviewed-by: serb, jdv, kcr (cherry picked from https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/5414b80b28cb) Bug: 171039472 Change-Id: I464ca7a13b186e26442d21c95b68f1e767aa9d9e
-rw-r--r--src/macosx/native/sun/java2d/opengl/CGLSurfaceData.m1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/macosx/native/sun/java2d/opengl/CGLSurfaceData.m b/src/macosx/native/sun/java2d/opengl/CGLSurfaceData.m
index 0c32ac3849..277a360391 100644
--- a/src/macosx/native/sun/java2d/opengl/CGLSurfaceData.m
+++ b/src/macosx/native/sun/java2d/opengl/CGLSurfaceData.m
@@ -93,7 +93,6 @@ JNF_COCOA_ENTER(env);
CGLCtxInfo *ctxinfo = (CGLCtxInfo *)oglc->ctxInfo;
#if USE_NSVIEW_FOR_SCRATCH
[ctxinfo->context makeCurrentContext];
- [ctxinfo->context setView: ctxinfo->scratchSurface];
#else
[ctxinfo->context clearDrawable];
[ctxinfo->context makeCurrentContext];