Skip to content

Commit

Permalink
Patch font blend/alpha tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Nov 14, 2023
1 parent c12a189 commit 4670d0f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source_files/edge/hu_draw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,6 @@ void HUD_RawImage(float hx1, float hy1, float hx2, float hy2, const image_c *ima
else // patch font
{
glEnable(GL_ALPHA_TEST);
glAlphaFunc(GL_GREATER, alpha * 0.66f);
glEnable(GL_BLEND);
glEnable(GL_TEXTURE_2D);
if ((var_smoothing && cur_font->def->ttf_smoothing == cur_font->def->TTF_SMOOTH_ON_DEMAND) ||
Expand Down Expand Up @@ -468,7 +467,6 @@ void HUD_RawImage(float hx1, float hy1, float hx2, float hy2, const image_c *ima
glVertex2f(hx1, hy2);
glEnd();
glDisable(GL_TEXTURE_2D);
glDisable(GL_BLEND);
return;
}

Expand Down

0 comments on commit 4670d0f

Please sign in to comment.