- fix for BGE warnings
[blender.git] / source / gameengine / Rasterizer / RAS_IPolygonMaterial.cpp
index cb5c5a1239771e16071309d70428c66126de9d2b..033daabc48f5af7c3c98ddae77eab77925d17a4b 100644 (file)
@@ -70,7 +70,6 @@ void  RAS_IPolyMaterial::Initialize(
 RAS_IPolyMaterial::RAS_IPolyMaterial() 
                : m_texturename("__Dummy_Texture_Name__"),
                m_materialname("__Dummy_Material_Name__"),
 RAS_IPolyMaterial::RAS_IPolyMaterial() 
                : m_texturename("__Dummy_Texture_Name__"),
                m_materialname("__Dummy_Material_Name__"),
-               m_materialindex(0),
                m_tile(0),
                m_tilexrep(0),
                m_tileyrep(0),
                m_tile(0),
                m_tilexrep(0),
                m_tileyrep(0),
@@ -78,6 +77,7 @@ RAS_IPolyMaterial::RAS_IPolyMaterial()
                m_transp(0),
                m_alpha(false),
                m_zsort(false),
                m_transp(0),
                m_alpha(false),
                m_zsort(false),
+               m_materialindex(0),
                m_polymatid(0),
                m_flag(0),
                m_multimode(0)
                m_polymatid(0),
                m_flag(0),
                m_multimode(0)
@@ -100,7 +100,6 @@ RAS_IPolyMaterial::RAS_IPolyMaterial(const STR_String& texname,
                                                                         bool zsort)
                : m_texturename(texname),
                m_materialname(matname),
                                                                         bool zsort)
                : m_texturename(texname),
                m_materialname(matname),
-               m_materialindex(materialindex),
                m_tile(tile),
                m_tilexrep(tilexrep),
                m_tileyrep(tileyrep),
                m_tile(tile),
                m_tilexrep(tilexrep),
                m_tileyrep(tileyrep),
@@ -108,6 +107,7 @@ RAS_IPolyMaterial::RAS_IPolyMaterial(const STR_String& texname,
                m_transp(transp),
                m_alpha(alpha),
                m_zsort(zsort),
                m_transp(transp),
                m_alpha(alpha),
                m_zsort(zsort),
+               m_materialindex(materialindex),
                m_polymatid(m_newpolymatid++),
                m_flag(0),
                m_multimode(0)
                m_polymatid(m_newpolymatid++),
                m_flag(0),
                m_multimode(0)