mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-18 09:47:59 -05:00
texture_cache return invalid buffer on deactivated color_mask
This commit is contained in:
committed by
ReinUsesLisp
parent
6bd034eae9
commit
d65a4af895
@ -370,10 +370,12 @@ void RasterizerOpenGL::SetupCachedFramebuffer(const FramebufferCacheKey& fbkey,
|
||||
return;
|
||||
|
||||
if (fbkey.is_single_buffer) {
|
||||
if (fbkey.color_attachments[0] != GL_NONE) {
|
||||
if (fbkey.color_attachments[0] != GL_NONE && fbkey.colors[0]) {
|
||||
fbkey.colors[0]->Attach(fbkey.color_attachments[0]);
|
||||
glDrawBuffer(fbkey.color_attachments[0]);
|
||||
} else {
|
||||
glDrawBuffer(GL_NONE);
|
||||
}
|
||||
glDrawBuffer(fbkey.color_attachments[0]);
|
||||
} else {
|
||||
for (std::size_t index = 0; index < Maxwell::NumRenderTargets; ++index) {
|
||||
if (fbkey.colors[index]) {
|
||||
|
Reference in New Issue
Block a user