Commit 1dd192d8 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed 0 pointer deref in meshnode. Closes #2048

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@18324 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ee2286e4
...@@ -721,7 +721,7 @@ void ACG::SceneGraph::MeshNodeT<Mesh>::getRenderObjects( IRenderer* _renderer, G ...@@ -721,7 +721,7 @@ void ACG::SceneGraph::MeshNodeT<Mesh>::getRenderObjects( IRenderer* _renderer, G
fragTemplate += "Wireframe/fragment_wire.tpl"; fragTemplate += "Wireframe/fragment_wire.tpl";
#ifdef GL_ARB_texture_buffer_object #ifdef GL_ARB_texture_buffer_object
if (!drawMesh_->getMeshCompiler()->isTriangleMesh()) if (!mesh_.is_trimesh())
{ {
// use modified shader for npoly meshes // use modified shader for npoly meshes
// the shader can identify non-face edges with the poly edge buffer // the shader can identify non-face edges with the poly edge buffer
...@@ -774,7 +774,7 @@ void ACG::SceneGraph::MeshNodeT<Mesh>::getRenderObjects( IRenderer* _renderer, G ...@@ -774,7 +774,7 @@ void ACG::SceneGraph::MeshNodeT<Mesh>::getRenderObjects( IRenderer* _renderer, G
fragTemplate += "Wireframe/fragment_hidden.tpl"; fragTemplate += "Wireframe/fragment_hidden.tpl";
#ifdef GL_ARB_texture_buffer_object #ifdef GL_ARB_texture_buffer_object
if (!drawMesh_->getMeshCompiler()->isTriangleMesh()) if (!mesh_.is_trimesh())
{ {
// use modified shader for npoly meshes // use modified shader for npoly meshes
// the shader can identify non-face edges with the poly edge buffer // the shader can identify non-face edges with the poly edge buffer
......
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