Skip to content
Snippets Groups Projects
Commit 662902c3 authored by Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware)
Browse files

Fix compiler warning pointer always evaluates to true

parent 2322182e
No related branches found
No related tags found
No related merge requests found
......@@ -492,18 +492,18 @@ void vtkDrawTexturedElements::DrawInstancedElements(
this->P->Primitive, this->P->Count, this->P->IndexType, nullptr /* indices */, instances);
#else
#if 1
if (GLEW_VERSION_3_1 && &glDrawElementsInstanced)
if (GLEW_VERSION_3_1)
{
glDrawElementsInstanced(
this->P->Primitive, this->P->Count, this->P->IndexType, nullptr /* indices */, instances);
}
else if (GL_ARB_instanced_arrays && &glDrawElementsInstancedARB)
else if (GL_ARB_instanced_arrays)
{
glDrawElementsInstancedARB(
this->P->Primitive, this->P->Count, this->P->IndexType, nullptr /* indices */, instances);
}
#else
if (GLEW_VERSION_3_1 && &glDrawArraysInstanced)
if (GLEW_VERSION_3_1)
{
glDrawArraysInstanced(this->P->Primitive, 0, this->P->Count, instances);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment