diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-08-11 14:20:57 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-08-11 14:20:57 -0500 |
| commit | 80398b3ccb0c4a6ff3ac20b3565619fe5cecc2f9 (patch) | |
| tree | 623156a93d159ece460a31590701d7cbdc701cdc /indra/newview/llwlparamset.cpp | |
| parent | 610764fbfce75f54c95d4b10c2a8f9482a7a7b80 (diff) | |
| parent | 2dd8ce53e4e0d14f2bc20796eb6bdf1ef12a65df (diff) | |
merge
Diffstat (limited to 'indra/newview/llwlparamset.cpp')
| -rw-r--r-- | indra/newview/llwlparamset.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llwlparamset.cpp b/indra/newview/llwlparamset.cpp index 02d914a812..22fba90f65 100644 --- a/indra/newview/llwlparamset.cpp +++ b/indra/newview/llwlparamset.cpp @@ -91,8 +91,9 @@ void LLWLParamSet::update(LLGLSLShader * shader) const val.mV[1] = F32(i->second[1].asReal()) + mCloudScrollYOffset; val.mV[2] = (F32) i->second[2].asReal(); val.mV[3] = (F32) i->second[3].asReal(); - - shader->uniform4fv(param, 1, val.mV); + stop_glerror(); + shader->uniform4fv(param, 1, val.mV); + stop_glerror(); } else // param is the uniform name { @@ -118,8 +119,9 @@ void LLWLParamSet::update(LLGLSLShader * shader) const { val.mV[0] = i->second.asBoolean(); } - + stop_glerror(); shader->uniform4fv(param, 1, val.mV); + stop_glerror(); } } } |
