Coverity: Structurally/Logically dead code
This commit is contained in:
@@ -136,7 +136,7 @@ public:
|
||||
const int32_t *texindices,
|
||||
const int nbind,
|
||||
const int mbind,
|
||||
const int texture);
|
||||
SbBool texture);
|
||||
|
||||
static void context_destruction_cb(uint32_t context, void * userdata)
|
||||
{
|
||||
@@ -1285,7 +1285,7 @@ void SoBrepFaceSet::renderHighlight(SoGLRenderAction *action, SelContextPtr ctx)
|
||||
doTextures = false;
|
||||
|
||||
renderShape(action, false, static_cast<const SoGLCoordinateElement*>(coords), &(cindices[start]), length,
|
||||
&(pindices[id]), 1, normals, nindices, &mb, mindices, &tb, tindices, nbind, mbind, doTextures?1:0);
|
||||
&(pindices[id]), 1, normals, nindices, &mb, mindices, &tb, tindices, nbind, mbind, doTextures);
|
||||
}
|
||||
state->pop();
|
||||
|
||||
@@ -1384,7 +1384,7 @@ void SoBrepFaceSet::renderSelection(SoGLRenderAction *action, SelContextPtr ctx,
|
||||
renderShape(action, false, static_cast<const SoGLCoordinateElement*>(coords), &(cindices[start]), length,
|
||||
&(pindices[id]), numparts, normals_s, nindices_s, &mb, mindices, &tb, tindices, nbind, mbind, doTextures?1:0);
|
||||
}
|
||||
if(push) {
|
||||
if (push) {
|
||||
state->pop();
|
||||
// SoCacheElement::invalidate(state);
|
||||
}
|
||||
@@ -1407,7 +1407,7 @@ void SoBrepFaceSet::VBO::render(SoGLRenderAction * action,
|
||||
const int32_t *texindices,
|
||||
const int nbind,
|
||||
const int mbind,
|
||||
const int texture)
|
||||
SbBool texture)
|
||||
{
|
||||
(void)texcoords; (void)texindices; (void)texture;
|
||||
const SbVec3f * coords3d = NULL;
|
||||
@@ -1736,7 +1736,7 @@ void SoBrepFaceSet::renderShape(SoGLRenderAction * action,
|
||||
const int32_t *texindices,
|
||||
const int nbind,
|
||||
const int mbind,
|
||||
const int texture)
|
||||
SbBool texture)
|
||||
{
|
||||
// Can we use vertex buffer objects?
|
||||
if (hasVBO) {
|
||||
|
||||
Reference in New Issue
Block a user