mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2025-08-27 16:01:16 +00:00
"Merge Tagged PR 11894"
This commit is contained in:
parent
5b1ebf6608
commit
10b1843f3e
|
@ -62,6 +62,7 @@ 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) {
|
||||
|
@ -82,7 +83,7 @@ VkViewport GetViewportState(const Device& device, const Maxwell& regs, size_t in
|
|||
}
|
||||
|
||||
if (y_negate) {
|
||||
y += height;
|
||||
y += conv(static_cast<f32>(rt_height));
|
||||
height = -height;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue