Browse Source

Fixed an uninizialized data bug in make_default_impl

Josh Yelon 18 years ago
parent
commit
eeb8b61bc9
1 changed files with 6 additions and 1 deletions
  1. 6 1
      panda/src/pgraph/shaderAttrib.I

+ 6 - 1
panda/src/pgraph/shaderAttrib.I

@@ -23,7 +23,12 @@
 //  Description: 
 //  Description: 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE ShaderAttrib::
 INLINE ShaderAttrib::
-ShaderAttrib() {
+ShaderAttrib() :
+  _shader(NULL),
+  _shader_priority(0),
+  _has_shader(false),
+  _auto_shader(false)
+{
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////