mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 05:28:56 +02:00
fix clang-cl comp (#3044)
Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3044
This commit is contained in:
parent
c2794985b2
commit
0d3cef65ad
1 changed files with 4 additions and 4 deletions
|
|
@ -1029,8 +1029,8 @@ void RasterizerVulkan::UpdateViewportsState(Tegra::Engines::Maxwell3D::Regs& reg
|
||||||
if (!regs.viewport_scale_offset_enabled) {
|
if (!regs.viewport_scale_offset_enabled) {
|
||||||
float x = static_cast<float>(regs.surface_clip.x);
|
float x = static_cast<float>(regs.surface_clip.x);
|
||||||
float y = static_cast<float>(regs.surface_clip.y);
|
float y = static_cast<float>(regs.surface_clip.y);
|
||||||
float width = std::max(1.0f, static_cast<float>(regs.surface_clip.width));
|
float width = (std::max)(1.0f, static_cast<float>(regs.surface_clip.width));
|
||||||
float height = std::max(1.0f, static_cast<float>(regs.surface_clip.height));
|
float height = (std::max)(1.0f, static_cast<float>(regs.surface_clip.height));
|
||||||
if (regs.window_origin.mode != Maxwell::WindowOrigin::Mode::UpperLeft) {
|
if (regs.window_origin.mode != Maxwell::WindowOrigin::Mode::UpperLeft) {
|
||||||
y += height;
|
y += height;
|
||||||
height = -height;
|
height = -height;
|
||||||
|
|
@ -1074,8 +1074,8 @@ void RasterizerVulkan::UpdateScissorsState(Tegra::Engines::Maxwell3D::Regs& regs
|
||||||
if (!regs.viewport_scale_offset_enabled) {
|
if (!regs.viewport_scale_offset_enabled) {
|
||||||
u32 x = regs.surface_clip.x;
|
u32 x = regs.surface_clip.x;
|
||||||
u32 y = regs.surface_clip.y;
|
u32 y = regs.surface_clip.y;
|
||||||
u32 width = std::max(1u, static_cast<u32>(regs.surface_clip.width));
|
u32 width = (std::max)(1u, static_cast<u32>(regs.surface_clip.width));
|
||||||
u32 height = std::max(1u, static_cast<u32>(regs.surface_clip.height));
|
u32 height = (std::max)(1u, static_cast<u32>(regs.surface_clip.height));
|
||||||
if (regs.window_origin.mode != Maxwell::WindowOrigin::Mode::UpperLeft) {
|
if (regs.window_origin.mode != Maxwell::WindowOrigin::Mode::UpperLeft) {
|
||||||
y = regs.surface_clip.height - (y + height);
|
y = regs.surface_clip.height - (y + height);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue