diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-10-12 16:39:32 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-10-12 16:39:32 +0800 |
commit | 4f26fe6430cd12914b0d6edf33baabe19829d014 (patch) | |
tree | 1e1ee5f7167b2d825cfea9a7e5ef8d0e0f9f37d3 /indra/llrender/llrendertarget.cpp | |
parent | 722c63cec4c4a1aee2fc5e9699a54da19a634f12 (diff) |
Preprocess eTextureType like sGLTextureType
(cause eTextureType seems to have been designed to mirror sGLTextureType)
otherwise you'd get a GL error of invalid enum of the first argument
for glTexImage2D.
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 2674fa1ec6..1ff0dec23a 100644 --- a/indra/llrender/llrendertarget.cpp +++ b/indra/llrender/llrendertarget.cpp @@ -255,12 +255,14 @@ bool LLRenderTarget::addColorAttachment(U32 color_fmt) stop_glerror(); } +#if GL_VERSION_3_1 if (mUsage != LLTexUnit::TT_RECT_TEXTURE) { gGL.getTexUnit(0)->setTextureAddressMode(LLTexUnit::TAM_MIRROR); stop_glerror(); } else +#endif { // ATI doesn't support mirrored repeat for rectangular textures. gGL.getTexUnit(0)->setTextureAddressMode(LLTexUnit::TAM_CLAMP); |