mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 11:29:57 +00:00
remove viewport_transform_enabled as it seems to be inactive when valid transforms are used.
This commit is contained in:
parent
8e971f5062
commit
6710eb4892
1 changed files with 5 additions and 12 deletions
|
@ -993,18 +993,11 @@ void RasterizerOpenGL::SyncViewport(OpenGLState& current_state) {
|
||||||
for (std::size_t i = 0; i < viewport_count; i++) {
|
for (std::size_t i = 0; i < viewport_count; i++) {
|
||||||
auto& viewport = current_state.viewports[i];
|
auto& viewport = current_state.viewports[i];
|
||||||
const auto& src = regs.viewports[i];
|
const auto& src = regs.viewports[i];
|
||||||
if (regs.viewport_transform_enabled) {
|
|
||||||
const MathUtil::Rectangle<s32> viewport_rect{regs.viewport_transform[i].GetRect()};
|
const MathUtil::Rectangle<s32> viewport_rect{regs.viewport_transform[i].GetRect()};
|
||||||
viewport.x = viewport_rect.left;
|
viewport.x = viewport_rect.left;
|
||||||
viewport.y = viewport_rect.bottom;
|
viewport.y = viewport_rect.bottom;
|
||||||
viewport.width = viewport_rect.GetWidth();
|
viewport.width = viewport_rect.GetWidth();
|
||||||
viewport.height = viewport_rect.GetHeight();
|
viewport.height = viewport_rect.GetHeight();
|
||||||
} else {
|
|
||||||
viewport.x = src.x;
|
|
||||||
viewport.y = src.y;
|
|
||||||
viewport.width = src.width;
|
|
||||||
viewport.height = src.height;
|
|
||||||
}
|
|
||||||
viewport.depth_range_far = regs.viewports[i].depth_range_far;
|
viewport.depth_range_far = regs.viewports[i].depth_range_far;
|
||||||
viewport.depth_range_near = regs.viewports[i].depth_range_near;
|
viewport.depth_range_near = regs.viewports[i].depth_range_near;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue