summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-09-27 21:06:59 +0800
committerErik Kundiman <erik@megapahit.org>2024-09-27 21:06:59 +0800
commit8723c024fb6e3afad1afcdaaab23c20bf2e825dc (patch)
treeee1c19e47cdeafc62c7cb91b3e919249f152f7cf /indra
parentb73b089baa61b86f381e411fd8fe90a4095c24a8 (diff)
Preprocess glGetTexImage
so it doesn't get compiled on non OpenGL 1.3 implementors.
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llimagegl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index 23216e586f..a9b47960b7 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -2518,7 +2518,9 @@ bool LLImageGL::scaleDown(S32 desired_discard)
sScratchPBOSize = (U32)size;
}
+#if GL_VERSION_1_3
glGetTexImage(mTarget, mip, mFormatPrimary, mFormatType, nullptr);
+#endif
free_tex_image(mTexName);