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

cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@19556 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 46c7a981
......@@ -194,8 +194,9 @@ void IRenderer::addRenderObject(ACG::RenderObject* _renderObject)
p->internalFlags_ = 0;
// precompile shader
#ifdef GL_VERSION_3_2
GLSL::Program* shaderProg = ACG::ShaderCache::getInstance()->getProgram(&p->shaderDesc);
#endif
// check primitive type and geometry shader
......
......@@ -775,7 +775,7 @@ void ACG::SceneGraph::MeshNodeT<Mesh>::getRenderObjects( IRenderer* _renderer, G
ro.emissive = OpenMesh::color_cast<ACG::Vec3f>(_state.overlay_color());
// eventually prepare depthbuffer first
if (!_drawMode.getLayerIndexByPrimitive(DrawModes::PRIMITIVE_POLYGON) >= 0 && mesh_.n_faces())
if ( (!_drawMode.getLayerIndexByPrimitive(DrawModes::PRIMITIVE_POLYGON) >= 0) && ( mesh_.n_faces() != 0 ))
{
ro.priority = 0;
......
Supports Markdown
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