Skip to content

Commit

Permalink
#5912: Remove GL state calls, this method is already embedded in a bu…
Browse files Browse the repository at this point in the history
…nch of these
  • Loading branch information
codereader committed Mar 3, 2022
1 parent ddaadc7 commit d6c9f1e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions radiantcore/rendersystem/backend/GeometryRenderer.h
Expand Up @@ -120,21 +120,10 @@ class GeometryRenderer :

void render()
{
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
glEnableClientState(GL_COLOR_ARRAY);

glFrontFace(GL_CW);

for (auto& group : _groups)
{
ObjectRenderer::SubmitGeometry(group.storageHandles, group.primitiveMode, _store);
}

glDisableClientState(GL_COLOR_ARRAY);
glDisableClientState(GL_NORMAL_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
}

void renderGeometry(Slot slot) override
Expand Down

0 comments on commit d6c9f1e

Please sign in to comment.