mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
attempt to work around compiler objection
This commit is contained in:
parent
de37b04930
commit
dab1ce28f8
@ -2895,7 +2895,7 @@ consider_rescale(PNMImage &pnmimage, const string &name) {
|
|||||||
new_y_size = (int)cfloor(new_y_size * texture_scale + 0.5);
|
new_y_size = (int)cfloor(new_y_size * texture_scale + 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (textures_power_2) {
|
switch (textures_power_2.get_value()) {
|
||||||
case ATS_down:
|
case ATS_down:
|
||||||
new_x_size = down_to_power_2(new_x_size);
|
new_x_size = down_to_power_2(new_x_size);
|
||||||
new_y_size = down_to_power_2(new_y_size);
|
new_y_size = down_to_power_2(new_y_size);
|
||||||
@ -2910,7 +2910,7 @@ consider_rescale(PNMImage &pnmimage, const string &name) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (textures_square) {
|
switch (textures_square.get_value()) {
|
||||||
case ATS_down:
|
case ATS_down:
|
||||||
new_x_size = new_y_size = min(new_x_size, new_y_size);
|
new_x_size = new_y_size = min(new_x_size, new_y_size);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user