Skip to content

Commit

Permalink
Renderer: Flush pending draws before switching GL state
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 30, 2021
1 parent c514f11 commit 2f527b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/apps/client/src/render/rend_model.cpp
Expand Up @@ -987,6 +987,7 @@ static void drawSubmodel(uint number, const vissprite_t &spr)
// If we mirror the model, triangles have a different orientation.
if (zSign < 0)
{
DGL_Flush();
glFrontFace(GL_CCW);
}

Expand Down Expand Up @@ -1086,6 +1087,7 @@ static void drawSubmodel(uint number, const vissprite_t &spr)

if (zSign < 0)
{
DGL_Flush();
glFrontFace(GL_CW);
}
DGL_DepthFunc(DGL_LESS);
Expand Down

0 comments on commit 2f527b2

Please sign in to comment.