R_DrawParticles: exit early if there is nothing to draw, avoid a useless glBegin() glEnd() pair.

This fixes a weird bug on Windows/AMD, where under some conditions, the
world would be drawn totally corrupted. Conditions for the bug were:
- gl_clear 0
- gamma 1
- glsl alias code in use
- status bar hidden, or, scr_sbaralpha 1
- map e1m1, look around the start position

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1202 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
ewasylishen 2015-04-16 23:57:39 +00:00
parent 606671f486
commit 4aad7272bc
1 changed files with 4 additions and 0 deletions

View File

@ -835,6 +835,10 @@ void R_DrawParticles (void)
if (!r_particles.value)
return;
//ericw -- avoid empty glBegin(),glEnd() pair below; causes issues on AMD
if (!active_particles)
return;
VectorScale (vup, 1.5, up);
VectorScale (vright, 1.5, right);