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

8262313: Override stencilAttachmentPixelFormat to maintain appropriat…

…e state
  • Loading branch information
jayathirthrao committed Feb 24, 2021
1 parent 07ce809 commit 223e3cba58f00b93b91197f09d87a3bc40dda44d
@@ -196,6 +196,11 @@ - (NSPointerArray * ) getSubStates:(NSString *)vertexShaderId fragmentShader:(NS
}
if (stencilNeeded) {
pipelineDesc.stencilAttachmentPixelFormat = MTLPixelFormatStencil8;
} else {
// We continue to use same encoder when we move from shape clip
// to other opcodes. So we need to maintain apprppriate state
// for stencilAttachmentPixelFormat until we end the encoder
pipelineDesc.stencilAttachmentPixelFormat = MTLPixelFormatInvalid;
}

if (renderOptions->isAA) {

0 comments on commit 223e3cb

Please sign in to comment.