diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-09-27 21:06:59 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-09-27 21:06:59 +0800 |
commit | 8723c024fb6e3afad1afcdaaab23c20bf2e825dc (patch) | |
tree | ee1c19e47cdeafc62c7cb91b3e919249f152f7cf /indra | |
parent | b73b089baa61b86f381e411fd8fe90a4095c24a8 (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.cpp | 2 |
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); |