File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -671,11 +671,6 @@ String8 ProgramCache::generateFragmentShader(const ProgramDescription& descripti
671671 shader.append (gFS_Main_FetchColor );
672672 }
673673 }
674- if (description.isAARect ) {
675- shader.append (gFS_Main_AccountForAARect );
676- } else if (description.isAA ) {
677- shader.append (gFS_Main_AccountForAA );
678- }
679674 if (description.hasGradient ) {
680675 shader.append (gFS_Main_FetchGradient [gradientIndex (description)]);
681676 shader.append (gFS_Main_AddDitherToGradient );
@@ -721,6 +716,13 @@ String8 ProgramCache::generateFragmentShader(const ProgramDescription& descripti
721716 }
722717 // Apply the color op if needed
723718 shader.append (gFS_Main_ApplyColorOp [description.colorOp ]);
719+
720+ if (description.isAARect ) {
721+ shader.append (gFS_Main_AccountForAARect );
722+ } else if (description.isAA ) {
723+ shader.append (gFS_Main_AccountForAA );
724+ }
725+
724726 // Output the fragment
725727 if (!blendFramebuffer) {
726728 shader.append (gFS_Main_FragColor );
You can’t perform that action at this time.
0 commit comments