From 97d57d81b001ad0322421829bd94385d9ed51d55 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Thu, 23 Jan 2014 19:02:43 -0600 Subject: [PATCH] Skip particle-glow vbo logic if shaders aren't enabled. --- indra/newview/llvopartgroup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llvopartgroup.cpp b/indra/newview/llvopartgroup.cpp index adee67c2a..09d2037e2 100644 --- a/indra/newview/llvopartgroup.cpp +++ b/indra/newview/llvopartgroup.cpp @@ -717,7 +717,7 @@ void LLVOPartGroup::getGeometry(S32 idx, *colorsp++ = color; //Only add emissive attributes if glowing (doing it for all particles is INCREDIBLY inefficient as it leads to a second, slower, render pass.) - if (pglow.mV[3] > F_ALMOST_ZERO || part.mGlow.mV[3] > F_ALMOST_ZERO) + if (gPipeline.canUseVertexShaders() && (pglow.mV[3] > 0 || part.mGlow.mV[3] > 0)) { //only write glow if it is not zero *emissivep++ = pglow; *emissivep++ = pglow;