diff options
Diffstat (limited to 'shaders/tile.cpp')
| -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); |
