Commit cd66502f authored by hybrid's avatar hybrid

Minor init fix.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2378 dfc29bdd-3216-0410-991c-e03cc46cb475
parent bff880b4
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
Flags for Octtree Flags for Octtree
*/ */
#define OCTTREE_USE_HARDWARE // use meshbuffer for drawing, enables hardware acceleration #define OCTTREE_USE_HARDWARE // use meshbuffer for drawing, enables hardware acceleration
#define OCTTREE_PARENTTEST // bypass full invisible/visible test #define OCTTREE_PARENTTEST // bypass full invisible/visible test
#define OCTTREE_BOX_BASED // use bounding box or frustum for calculate polys #define OCTTREE_BOX_BASED // use bounding box or frustum for calculate polys
namespace irr namespace irr
{ {
...@@ -33,7 +33,7 @@ public: ...@@ -33,7 +33,7 @@ public:
struct SMeshChunk : public scene::CMeshBuffer<T> struct SMeshChunk : public scene::CMeshBuffer<T>
{ {
SMeshChunk () SMeshChunk ()
: scene::CMeshBuffer<T>() : scene::CMeshBuffer<T>(), MaterialId(0)
{ {
scene::CMeshBuffer<T>::grab(); scene::CMeshBuffer<T>::grab();
} }
...@@ -41,7 +41,6 @@ public: ...@@ -41,7 +41,6 @@ public:
virtual ~SMeshChunk () virtual ~SMeshChunk ()
{ {
//removeAllHardwareBuffers //removeAllHardwareBuffers
MaterialId = 0;
} }
s32 MaterialId; s32 MaterialId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment