GPU: Clarify new framebuf stencil upload.

Actually, this doesn't need alpha either.
This commit is contained in:
Unknown W. Brackets committed 2022-08-06 21:18:48 -07:00
1 parent 71d66ae1ec
commit c212bd0fec
3 files changed
+10 -7

No files matched your search

+2 -1
View File
@@ -471,7 +471,8 @@ VirtualFramebuffer *FramebufferManagerCommon::DoSetRenderFrameBuffer(const Frame
if (useBufferedRendering_ && !g_Config.bDisableSlowFramebufEffects) {
gpu->PerformMemoryUpload(params.fb_address, byteSize);
PerformStencilUpload(params.fb_address, byteSize, StencilUpload::STENCIL_IS_ZERO);
// Alpha was already done by PerformMemoryUpload.
PerformStencilUpload(params.fb_address, byteSize, StencilUpload::STENCIL_IS_ZERO | StencilUpload::IGNORE_ALPHA);
// TODO: Is it worth trying to upload the depth buffer (only if it wasn't copied above..?)
}