Skip to content
Snippets Groups Projects
Commit 53f29252 authored by Oz Linden's avatar Oz Linden
Browse files

[STORM-164] simplify sCurrent calculations for compatibility with gcc 4.4

parent 8e28257c
No related branches found
No related tags found
No related merge requests found
...@@ -139,10 +139,10 @@ protected: ...@@ -139,10 +139,10 @@ protected:
~LLSkyTex(); ~LLSkyTex();
static S32 getResolution() { return sResolution; } static S32 getResolution() { return sResolution; }
static S32 getCurrent() { return sCurrent; } static S32 getCurrent() { return sCurrent; }
static S32 stepCurrent() { return (sCurrent = (sCurrent + 1) % 2); } static S32 stepCurrent() { sCurrent++; sCurrent &= 1; return sCurrent; }
static S32 getNext() { return ((sCurrent+1) % 2); } static S32 getNext() { return ((sCurrent+1) & 1); }
static S32 getWhich(const BOOL curr) { return curr ? sCurrent : getNext(); } static S32 getWhich(const BOOL curr) { return curr ? sCurrent : getNext(); }
void initEmpty(const S32 tex); void initEmpty(const S32 tex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment