summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-25 21:47:56 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-25 21:56:16 +0100
commitc9431f34e543dc0e6bf564e4ada9574072e92918 (patch)
tree926ed08d8e15a93e946b2adfab725383092e86e5 /shaders
parent6a4ac0dc015106801d79cc258b06f896ea0e2716 (diff)
convert to magnum vectors and use shorter syntax
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/tile.cpp b/shaders/tile.cpp
index 9df05f8e..8d859ff3 100644
--- a/shaders/tile.cpp
+++ b/shaders/tile.cpp
@@ -64,7 +64,7 @@ void tile_shader::_draw()
if (_tint != _real_tint)
setUniform(TintUniform, _real_tint = _tint);
- if (const auto offset = Vector3((float)_camera_offset[0], (float)_camera_offset[1], _depth_offset);
+ if (const auto offset = Vector3(Vector2(_camera_offset), _depth_offset);
offset != _real_camera_offset)
{
_real_camera_offset = offset;