mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 16:41:22 +00:00
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:
parent
606671f486
commit
4aad7272bc
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue