Browse Source

fix uninitialized _scale

David Rose 14 years ago
parent
commit
7a3e652709
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/grutil/pfmFile.cxx

+ 2 - 0
panda/src/grutil/pfmFile.cxx

@@ -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();