summaryrefslogtreecommitdiff
path: root/editor/plugins/baked_light_baker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/plugins/baked_light_baker.cpp')
-rw-r--r--editor/plugins/baked_light_baker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/baked_light_baker.cpp b/editor/plugins/baked_light_baker.cpp
index 036229a7af..bef35647d4 100644
--- a/editor/plugins/baked_light_baker.cpp
+++ b/editor/plugins/baked_light_baker.cpp
@@ -1460,7 +1460,7 @@ void BakedLightBaker::_make_octree_texture() {
} else {
baked_light_texture_w=otex_w;
- baked_light_texture_h=nearest_power_of_2(row);
+ baked_light_texture_h=next_power_of_2(row);
print_line("w: "+itos(otex_w));
print_line("h: "+itos(row));
break;
@@ -1558,7 +1558,7 @@ void BakedLightBaker::_make_octree_texture() {
}
- baked_octree_texture_h=nearest_power_of_2(baked_octree_texture_h);
+ baked_octree_texture_h=next_power_of_2(baked_octree_texture_h);
print_line("RESULT! "+itos(baked_octree_texture_w)+","+itos(baked_octree_texture_h));
}