mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix compiler warning
This commit is contained in:
parent
d2602b7a26
commit
ad2bb4e6ce
@ -335,8 +335,8 @@ PNMImage GeoMipTerrain::
|
|||||||
make_slope_image() {
|
make_slope_image() {
|
||||||
PNMImage result (_xsize, _ysize);
|
PNMImage result (_xsize, _ysize);
|
||||||
result.make_grayscale();
|
result.make_grayscale();
|
||||||
for (int x = 0; x < _xsize; ++x) {
|
for (unsigned int x = 0; x < _xsize; ++x) {
|
||||||
for (int y = 0; y < _ysize; ++y) {
|
for (unsigned int y = 0; y < _ysize; ++y) {
|
||||||
LVector3f normal (get_normal(x, y));
|
LVector3f normal (get_normal(x, y));
|
||||||
normal.set(normal.get_x() / _root.get_sx(),
|
normal.set(normal.get_x() / _root.get_sx(),
|
||||||
normal.get_y() / _root.get_sy(),
|
normal.get_y() / _root.get_sy(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user