diff options
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r-- | editor/imgui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 5a6b2514..7206a318 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -228,7 +228,7 @@ void app::do_lightmap_test() auto c = chunk_coords_{(int16_t)i, (int16_t)j, z}; if (auto* chunk = w.at(c)) { - auto offset = Vector2(Vector2i(c.x) - Vector2i(ch)); + auto offset = Vector2(Vector2i(c.x, c.y) - Vector2i(ch)); shader.add_chunk(offset, *chunk); } } |