Skip to content

Commit

Permalink
drop an unneeded glPush/glPop Matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed Apr 25, 2024
1 parent 7081da0 commit dacb128
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/3D/TextureFont.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ void TextureFont::drawString(float scale, GLfloat color[4], const char *str,
glPushMatrix();
glScalef(scale, scale, 1);

glPushMatrix();
int charToUse = 0;
for (int i = 0; i < len; i++)
{
Expand All @@ -191,7 +190,6 @@ void TextureFont::drawString(float scale, GLfloat color[4], const char *str,
glPopMatrix();
if (color[0] >= 0)
glColor4f(1, 1, 1, 1);
glPopMatrix();
}

// Local Variables: ***
Expand Down

0 comments on commit dacb128

Please sign in to comment.