summaryrefslogtreecommitdiff
path: root/indra/newview/llvosky.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2010-09-15 11:45:50 -0400
committerOz Linden <oz@lindenlab.com>2010-09-15 11:45:50 -0400
commite44011c3befe5f833490731baac90f418486cdea (patch)
treed8ca7432bf8ac7f0130c8dd37428efc541cba97b /indra/newview/llvosky.h
parentb6a39ffa214dea8045a768bcfd83f2e1cab13c9b (diff)
parentbf2849ef2346b41ab096c4c7ce44756e3e20cd27 (diff)
pull fix for VWR-20694 / STORM-155
Diffstat (limited to 'indra/newview/llvosky.h')
-rw-r--r--indra/newview/llvosky.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llvosky.h b/indra/newview/llvosky.h
index 0ac6b9117b..6b3e7873a1 100644
--- a/indra/newview/llvosky.h
+++ b/indra/newview/llvosky.h
@@ -139,10 +139,10 @@ protected:
~LLSkyTex();
- static S32 getResolution() { return sResolution; }
+ static S32 getResolution() { return sResolution; }
static S32 getCurrent() { return sCurrent; }
- static S32 stepCurrent() { return (sCurrent = (sCurrent + 1) % 2); }
- static S32 getNext() { return ((sCurrent+1) % 2); }
+ static S32 stepCurrent() { sCurrent++; sCurrent &= 1; return sCurrent; }
+ static S32 getNext() { return ((sCurrent+1) & 1); }
static S32 getWhich(const BOOL curr) { return curr ? sCurrent : getNext(); }
void initEmpty(const S32 tex);