Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8262293: Remove redundant end of encoder for AAShader rendering
Browse files Browse the repository at this point in the history
We don't need to end an encoder before/after AAShader rendering
  • Loading branch information
avu committed Feb 24, 2021
1 parent e5a27b5 commit 9f21a46
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -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);
Expand Down

0 comments on commit 9f21a46

Please sign in to comment.