early-access version 3966

This commit is contained in:
pineappleEA
2023-11-05 06:21:31 +01:00
parent 5989c4e9ee
commit fb0108d8c6
15 changed files with 52 additions and 27 deletions

View File

@@ -62,7 +62,6 @@ struct DrawParams {
VkViewport GetViewportState(const Device& device, const Maxwell& regs, size_t index, float scale) {
const auto& src = regs.viewport_transform[index];
const u32 rt_height = src.scale_y != 0 ? regs.rt[index].height : 0;
const auto conv = [scale](float value) {
float new_value = value * scale;
if (scale < 1.0f) {
@@ -83,7 +82,7 @@ VkViewport GetViewportState(const Device& device, const Maxwell& regs, size_t in
}
if (y_negate) {
y += conv(static_cast<f32>(rt_height));
y += conv(static_cast<f32>(regs.surface_clip.height));
height = -height;
}