diff options
author | Geenz <geenz@geenzo.com> | 2013-01-07 12:34:19 -0500 |
---|---|---|
committer | Geenz <geenz@geenzo.com> | 2013-01-07 12:34:19 -0500 |
commit | e8f6734d67ce1f61c5745bc1b25a9e5d1d599aca (patch) | |
tree | 8b900f3163b7630880693cdb07a76c25b5aa708e /indra/llrender/llgl.cpp | |
parent | 8b78b9960a32fb7a8a8663478d3fd30de65095fd (diff) | |
parent | 9e2e1500640a20b8c89e13a103f60b4679afd6b2 (diff) |
Merge
Diffstat (limited to 'indra/llrender/llgl.cpp')
-rw-r--r-- | indra/llrender/llgl.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index 0b56b3889c..ab6310f545 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -969,6 +969,15 @@ void LLGLManager::initExtensions() ExtensionExists("GL_EXT_framebuffer_multisample", gGLHExts.mSysExts) && ExtensionExists("GL_EXT_packed_depth_stencil", gGLHExts.mSysExts); #endif +#ifdef GL_EXT_texture_sRGB + mHassRGBTexture = ExtensionExists("GL_EXT_texture_sRGB", gGLHExts.mSysExts); +#endif + +#ifdef GL_ARB_framebuffer_sRGB + mHassRGBFramebuffer = ExtensionExists("GL_ARB_framebuffer_sRGB", gGLHExts.mSysExts); +#else + mHassRGBFramebuffer = ExtensionExists("GL_EXT_framebuffer_sRGB", gGLHExts.mSysExts); +#endif mHasMipMapGeneration = mHasFramebufferObject || mGLVersion >= 1.4f; |