Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

8262293: Remove redundant end of encoder for AAShader rendering

  • Loading branch information
Alexey Ushakov committed Feb 24, 2021
1 parent e5a27b5 commit 07ce8091f3865b8454625ab6ef20f032835bfc24
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/EncoderManager.m
@@ -366,8 +366,7 @@ - (void)setContext:(MTLContex * _Nonnull)mtlc {
//
jboolean needEnd = JNI_FALSE;
if (_encoder != nil) {
if (_destination != dest || renderOptions->isAA != _encoderStates.aa ||
renderOptions->isAAShader != _encoderStates.aaShader) {
if (_destination != dest || renderOptions->isAA != _encoderStates.aa) {
J2dTraceLn2(J2D_TRACE_VERBOSE,
"end common encoder because of dest change: %p -> %p",
_destination, dest);

0 comments on commit 07ce809

Please sign in to comment.