view.c (V_PolyBlend): Move glColor4fv call to between glBegin and glEnd

which is legal by GL spec. Fixes screen flashes in some maps with AMD's
new drivers.  Patch authored by temx (@temx at github.)
Reference issue: https://github.com/sezero/quakespasm/issues/42.
This commit is contained in:
Ozkan Sezer 2022-10-13 20:28:02 +03:00
parent eefe347f04
commit f09b26bb5d

View file

@ -547,9 +547,10 @@ void V_PolyBlend (void)
glMatrixMode(GL_MODELVIEW);
glLoadIdentity ();
glColor4fv (v_blend);
glBegin (GL_QUADS);
glColor4fv (v_blend); // inside glBegin / glEnd to workaround an AMD driver bug
glVertex2f (0,0);
glVertex2f (1, 0);
glVertex2f (1, 1);