1
0
Fork 0
forked from suyu/suyu

renderer_vulkan: fix viewport swizzle dirty state tracking

This commit is contained in:
Liam 2023-10-26 19:24:00 -04:00
parent 43be2bfe33
commit 21c631b33b

View file

@ -190,7 +190,7 @@ void SetupDirtySpecialOps(Tables& tables) {
void SetupDirtyViewportSwizzles(Tables& tables) { void SetupDirtyViewportSwizzles(Tables& tables) {
static constexpr size_t swizzle_offset = 6; static constexpr size_t swizzle_offset = 6;
for (size_t index = 0; index < Regs::NumViewports; ++index) { for (size_t index = 0; index < Regs::NumViewports; ++index) {
tables[0][OFF(viewport_transform) + index * NUM(viewport_transform[0]) + swizzle_offset] = tables[1][OFF(viewport_transform) + index * NUM(viewport_transform[0]) + swizzle_offset] =
ViewportSwizzles; ViewportSwizzles;
} }
} }