diff options
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r-- | src/mapblock.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index 5ca874946..c4c4ad795 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -356,9 +356,10 @@ public: // This is a "Standard MeshBuffer", // it's a typedeffed CMeshBuffer<video::S3DVertex> - scene::IMeshBuffer *buf = new scene::SMeshBuffer(); + scene::SMeshBuffer *buf = new scene::SMeshBuffer(); // Set material - ((scene::SMeshBuffer*)buf)->Material = p.material; + buf->Material = p.material; + //((scene::SMeshBuffer*)buf)->Material = p.material; // Use VBO //buf->setHardwareMappingHint(scene::EHM_STATIC); // Add to mesh |