diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-09-05 23:14:03 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-09-05 23:14:03 +0800 |
commit | ed44bcf9f763a7d1f7549eb1f03d8aa7fb933ef7 (patch) | |
tree | 0d37e52d48fd72f61ce4f6ac718a494c8b45c5a7 /indra/llrender/llrendertarget.cpp | |
parent | 6e9102ad408282ea6d5f8926f4a6ed377fe922ef (diff) |
Preprocess non portable GL funcs & macros
so that implementations that don't include a certain GL implementation
won't fail trying to compile the code.
Diffstat (limited to 'indra/llrender/llrendertarget.cpp')
-rw-r--r-- | indra/llrender/llrendertarget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llrendertarget.cpp b/indra/llrender/llrendertarget.cpp index fffc15efc3..f73aab8d23 100644 --- a/indra/llrender/llrendertarget.cpp +++ b/indra/llrender/llrendertarget.cpp @@ -560,7 +560,9 @@ void LLRenderTarget::bindTexture(U32 index, S32 channel, LLTexUnit::eTextureFilt { case GL_SRGB: case GL_SRGB8: +#if GL_VERSION_2_1 case GL_SRGB_ALPHA: +#endif case GL_SRGB8_ALPHA8: isSRGB = true; break; |