mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
eefe347f04
commit
f09b26bb5d
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue