Merge pull request #108073 from Gaktan/fix-decal-atlas

Fix decal atlas clipped when using texture resolution < 32
This commit is contained in:
Thaddeus Crews
2026-04-02 12:33:14 -05:00
@@ -3463,7 +3463,8 @@ void TextureStorage::update_decal_atlas() {
int *v_offsets = v_offsetsv.ptrw();
memset(v_offsets, 0, sizeof(int) * base_size);
int max_height = 0;
// Take border into account for minimum height.
int max_height = 2;
for (int i = 0; i < item_count; i++) {
//best fit