summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Madarasz <graham@lindenlab.com>2013-06-13 10:52:30 -0700
committerGraham Madarasz <graham@lindenlab.com>2013-06-13 10:52:30 -0700
commit8c41ff72ac48a694d64643c8db4af678204f8a7f (patch)
treeb05d021a5813ee490f2e973df33c142822721227
parent6583bfe2628d3dafb91a825c69c563ac4356ae9e (diff)
Fix ternary use found illegit in the eyes of GCC
-rwxr-xr-xindra/newview/llviewerdisplay.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp
index d0f24b26a9..b07fe39e37 100755
--- a/indra/newview/llviewerdisplay.cpp
+++ b/indra/newview/llviewerdisplay.cpp
@@ -127,7 +127,14 @@ void display_startup()
// Update images?
//gImageList.updateImages(0.01f);
- LLTexUnit::sWhiteTexture = !LLViewerFetchedTexture::sWhiteImagep.isNull() ? LLViewerFetchedTexture::sWhiteImagep->getTexName() : NULL;
+
+ // Written as branch to appease GCC which doesn't like different
+ // pointer types across ternary ops
+ //
+ if (!LLViewerFetchedTexture::sWhiteImagep.isNull())
+ {
+ LLTexUnit::sWhiteTexture = LLViewerFetchedTexture::sWhiteImagep->getTexName();
+ }
LLGLSDefault gls_default;