diff options
author | Oz Linden <oz@lindenlab.com> | 2013-01-11 18:52:27 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-01-11 18:52:27 -0500 |
commit | 7d56fb04dfdf47768e2e81ec80d15737370af271 (patch) | |
tree | 29a9188f7ad87c687afca4f26f6f75649f19a5f4 /indra/llrender/llgl.cpp | |
parent | 597b374f382946b95d556af82cad612124b3211a (diff) | |
parent | de0863ed6e91fda0c1b5342b9fecf07c4af47d63 (diff) |
merge gamma correction rendering
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; |