diff --git a/panda/src/pgraph/geomTransformer.cxx b/panda/src/pgraph/geomTransformer.cxx index d0efb4f267..5c57282171 100644 --- a/panda/src/pgraph/geomTransformer.cxx +++ b/panda/src/pgraph/geomTransformer.cxx @@ -512,8 +512,6 @@ make_compatible_state(GeomNode *node) { return false; } - bool has_incompatible = false; - GeomNode::CDWriter cdata(node->_cycler); GeomNode::GeomList::iterator gi; GeomNode::GeomList &geoms = *(cdata->modify_geoms()); @@ -521,10 +519,10 @@ make_compatible_state(GeomNode *node) { // For each geom, calculate a canonicalized RenderState, and // classify all the geoms according to that. - typedef pmap > StateTable; + typedef pmap > StateTable; StateTable state_table; - for (int i=0; iadd_attrib(ColorAttrib::make_vertex()); state_table[canon].push_back(i); @@ -541,7 +539,7 @@ make_compatible_state(GeomNode *node) { pvector &indices = (*si).second; bool mismatch = false; - for (int i=1; iget_attrib(ColorAttrib::get_class_type()); if (ra == (RenderAttrib *)NULL) { diff --git a/panda/src/pgraph/shaderAttrib.I b/panda/src/pgraph/shaderAttrib.I index e0da2de5c8..7d23783fb8 100755 --- a/panda/src/pgraph/shaderAttrib.I +++ b/panda/src/pgraph/shaderAttrib.I @@ -26,8 +26,8 @@ INLINE ShaderAttrib:: ShaderAttrib() : _shader(NULL), _shader_priority(0), - _has_shader(false), - _auto_shader(false) + _auto_shader(false), + _has_shader(false) { } diff --git a/panda/src/pgraph/shaderGenerator.cxx b/panda/src/pgraph/shaderGenerator.cxx index 74019e0d7d..f965cc0b92 100644 --- a/panda/src/pgraph/shaderGenerator.cxx +++ b/panda/src/pgraph/shaderGenerator.cxx @@ -58,7 +58,7 @@ #include "ambientLight.h" #include "directionalLight.h" #include "pointLight.h" -#include "spotLight.h" +#include "spotlight.h" TypeHandle ShaderGenerator::_type_handle; PT(ShaderGenerator) ShaderGenerator::_default_generator; @@ -377,10 +377,10 @@ synthesize_shader(const RenderState *rs) { char *pos_freg = 0; char *normal_vreg = 0; - char *tangent_vreg = 0; - char *binormal_vreg = 0; + // char *tangent_vreg = 0; + // char *binormal_vreg = 0; char *normal_freg = 0; - char *eyevec_freg = 0; + // char *eyevec_freg = 0; pvector texcoord_vreg; pvector texcoord_freg; pvector tslightvec_freg;