Skip to content

Commit

Permalink
fix: menu not showing underwater, quad dmg, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
codeflorist committed Apr 1, 2023
1 parent 9db84ca commit 089588a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Quake/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,31 +559,43 @@ void V_PolyBlend (void)

GL_DisableMultitexture();

glPushAttrib(GL_TRANSFORM_BIT);
glDisable (GL_ALPHA_TEST);
glDisable (GL_TEXTURE_2D);
glDisable (GL_DEPTH_TEST);
glEnable (GL_BLEND);

glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity ();
glOrtho (0, 1, 1, 0, -99999, 99999);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity ();

glBegin (GL_QUADS);

glColor4fv (v_blend); // inside glBegin / glEnd to workaround an AMD driver bug

glBegin(GL_QUADS);
glVertex2f (0,0);
glVertex2f (1, 0);
glVertex2f (1, 1);
glVertex2f (0, 1);
glEnd ();

glColor3f(1, 1, 1);
glDisable (GL_BLEND);
glEnable (GL_DEPTH_TEST);
glEnable (GL_TEXTURE_2D);
glEnable (GL_ALPHA_TEST);

glMatrixMode(GL_MODELVIEW);
glPopMatrix();

glMatrixMode(GL_PROJECTION);
glPopMatrix();

glPopAttrib();
}

/*
Expand Down

0 comments on commit 089588a

Please sign in to comment.