summaryrefslogtreecommitdiffhomepage
path: root/main/draw.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-14 12:53:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-14 12:53:00 +0200
commit879c76e8fc1c6aa4e23fe0b5ed7ac62e6b1caeb4 (patch)
treeca2d5ba5e99c878144941be1bb3b04507058d0df /main/draw.cpp
parentf5c387da470ae43a2c8aff75b419e784c8bb3bc5 (diff)
renders almost correctly
Can't be done any better without using topo sort (which means full vbo uploads each frame).
Diffstat (limited to 'main/draw.cpp')
-rw-r--r--main/draw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 0e4ecc9f..a8bac01c 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -103,8 +103,8 @@ auto main_impl::get_draw_bounds() const noexcept -> draw_bounds
y1 = std::max(y1, p.y);
}
- constexpr int16_t maxx = tile_shader::max_screen_tiles.x()/2 - 1, minx = -maxx,
- maxy = tile_shader::max_screen_tiles.y()/2 - 1, miny = -maxy;
+ const int16_t maxx = tile_shader::max_screen_tiles.x()/2 - 1, minx = -maxx,
+ maxy = tile_shader::max_screen_tiles.y()/2 - 1, miny = -maxy;
x0 = std::clamp(x0, minx, maxx);
x1 = std::clamp(x1, minx, maxx);