summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-09-28 16:51:23 -0500
committerDave Parks <davep@lindenlab.com>2011-09-28 16:51:23 -0500
commit872567c0c1a58272b276303c881585acf9ba9ac0 (patch)
tree3327ddd8c0f30cb245a845d766bac605ea697ad4
parente43f4dc31b40e588805e06f4c503e0387687a08e (diff)
SH-2244 Fix for mac build?
-rw-r--r--indra/llrender/llimagegl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index cbdb8f83f6..3d3c94ef3e 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -727,7 +727,7 @@ void LLImageGL::setImage(const U8* data_in, BOOL data_hasmips)
{
if (mAutoGenMips)
{
- if (!glGenerateMipmap)
+ if (!gGLManager.mHasFramebufferObject)
{
glTexParameteri(LLTexUnit::getInternalType(mBindTarget), GL_GENERATE_MIPMAP_SGIS, TRUE);
}
@@ -760,7 +760,7 @@ void LLImageGL::setImage(const U8* data_in, BOOL data_hasmips)
}
}
- if (glGenerateMipmap)
+ if (gGLManager.mHasFramebufferObject)
{
glGenerateMipmap(LLTexUnit::getInternalType(mBindTarget));
}