fix uninitialized _scale
This commit is contained in:
parent
4f59ca4705
commit
7a3e652709
|
|
@ -85,6 +85,7 @@ void PfmFile::
|
|||
clear() {
|
||||
_x_size = 0;
|
||||
_y_size = 0;
|
||||
_scale = 1.0;
|
||||
_num_channels = 3;
|
||||
_table.clear();
|
||||
}
|
||||
|
|
@ -100,6 +101,7 @@ clear(int x_size, int y_size, int num_channels) {
|
|||
nassertv(x_size >= 0 && y_size >= 0);
|
||||
_x_size = x_size;
|
||||
_y_size = y_size;
|
||||
_scale = 1.0;
|
||||
_num_channels = _num_channels;
|
||||
|
||||
_table.clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue