summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorsimon_linden <none@none>2013-09-09 16:17:16 -0700
committersimon_linden <none@none>2013-09-09 16:17:16 -0700
commite2019e8a3b5175eb6d7322fbe7c466f213854640 (patch)
tree1e2fbeaeb249e0f3f0f91e94af213c1840438581 /indra/llrender
parent6dd7e0c9ef587c6c05726d407bef8b51018a7a4b (diff)
parent2c1d89c57ec21e4790eb14066d2291282a1000b4 (diff)
Merge downstream code with viewer-release
Diffstat (limited to 'indra/llrender')
-rwxr-xr-xindra/llrender/llglheaders.h5
-rwxr-xr-xindra/llrender/llrendertarget.cpp5
2 files changed, 4 insertions, 6 deletions
diff --git a/indra/llrender/llglheaders.h b/indra/llrender/llglheaders.h
index 4a4153ece8..5a80a8faa4 100755
--- a/indra/llrender/llglheaders.h
+++ b/indra/llrender/llglheaders.h
@@ -1011,12 +1011,7 @@ extern void glGetBufferPointervARB (GLenum, GLenum, GLvoid* *);
}
#endif
-#if __MAC_OS_X_VERSION_MAX_ALLOWED <= 1070
#include <OpenGL/gl.h>
-#else
-#include <AGL/gl.h>
-#endif
-
#endif // LL_MESA / LL_WINDOWS / LL_DARWIN
diff --git a/indra/llrender/llrendertarget.cpp b/indra/llrender/llrendertarget.cpp
index 429b91c878..33a852bedf 100755
--- a/indra/llrender/llrendertarget.cpp
+++ b/indra/llrender/llrendertarget.cpp
@@ -252,12 +252,15 @@ bool LLRenderTarget::addColorAttachment(U32 color_fmt)
mTex.push_back(tex);
mInternalFormat.push_back(color_fmt);
+#if !LL_DARWIN
if (gDebugGL)
{ //bind and unbind to validate target
bindTarget();
flush();
}
-
+#endif
+
+
return true;
}