diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 20:29:57 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 20:51:01 +0100 |
| commit | 2659fae8c838601282b9b90d5e0dc8b1da3f3f2b (patch) | |
| tree | 882ffea048f54f7dab88074bfb777fe26120bbe6 | |
| parent | 43e8c81a40cb798b5a8f2abb7cda1464c4b0ac5c (diff) | |
shader: fix assert
| -rw-r--r-- | shaders/tile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/tile.cpp b/shaders/tile.cpp index c1c0ce79..ff08de2e 100644 --- a/shaders/tile.cpp +++ b/shaders/tile.cpp @@ -57,7 +57,7 @@ tile_shader& tile_shader::set_tint(const Vector4& tint) void tile_shader::_draw() { - fm_assert(_camera_offset[0] < 1 << 24 && _camera_offset[1] < 1 << 24); + fm_assert(std::fabs(_camera_offset[0]) < 1 << 24 && std::fabs(_camera_offset[1]) < 1 << 24); if (_tint != _real_tint) setUniform(TintUniform, _real_tint = _tint); |
