From 8723c024fb6e3afad1afcdaaab23c20bf2e825dc Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Fri, 27 Sep 2024 21:06:59 +0800 Subject: Preprocess glGetTexImage so it doesn't get compiled on non OpenGL 1.3 implementors. --- indra/llrender/llimagegl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra/llrender') 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); -- cgit v1.2.3