From 7a3e6527096772f53a79593517250f131eeaeacc Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 13 Jun 2011 01:57:52 +0000 Subject: [PATCH] fix uninitialized _scale --- panda/src/grutil/pfmFile.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/grutil/pfmFile.cxx b/panda/src/grutil/pfmFile.cxx index 3ed65b2ea0..23212605ec 100755 --- a/panda/src/grutil/pfmFile.cxx +++ b/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();