Fix problem matching framebuffers for reinterpret

This commit is contained in:
Henrik Rydgård committed 2022-08-27 13:57:54 +02:00
1 parent c533ea4d93
commit 92eaac0210
1 file changed
+1 -1
+1 -1
View File
@@ -2774,7 +2774,7 @@ VirtualFramebuffer *FramebufferManagerCommon::ResolveFramebufferColorToFormat(Vi
continue;
}
if (dest->fb_address == src->fb_address && dest->fb_stride == src->fb_stride && dest->fb_format == newFormat) {
if (dest->fb_address == src->fb_address && dest->FbStrideInBytes() == src->FbStrideInBytes() && dest->fb_format == newFormat) {
vfb = dest;
break;
}