Fix the merger surface's texture rect calculation.

This commit is contained in:
Relintai 2022-02-26 10:03:07 +01:00
parent 26e6a17e24
commit 0298d0216f

View File

@ -59,8 +59,8 @@ void Terrain2DSurfaceMerger::refresh_rects() {
} }
Rect2 region = at->get_region(); Rect2 region = at->get_region();
float w = at->get_width(); float w = tex->get_width();
float h = at->get_height(); float h = tex->get_height();
Rect2 r; Rect2 r;