diff options
Diffstat (limited to 'indra/llappearance/lltexlayerparams.cpp')
-rw-r--r-- | indra/llappearance/lltexlayerparams.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llappearance/lltexlayerparams.cpp b/indra/llappearance/lltexlayerparams.cpp index a288c8955a..ec02d0d7fc 100644 --- a/indra/llappearance/lltexlayerparams.cpp +++ b/indra/llappearance/lltexlayerparams.cpp @@ -321,7 +321,11 @@ BOOL LLTexLayerParamAlpha::render(S32 x, S32 y, S32 width, S32 height) // We now have something in one of our caches LLTexLayerSet::sHasCaches |= mCachedProcessedTexture ? TRUE : FALSE; +#if GL_VERSION_1_1 mCachedProcessedTexture->setExplicitFormat(GL_ALPHA8, GL_ALPHA); +#else + mCachedProcessedTexture->setExplicitFormat(GL_ALPHA8_EXT, GL_ALPHA); +#endif } // Applies domain and effective weight to data as it is decoded. Also resizes the raw image if needed. @@ -344,7 +348,9 @@ BOOL LLTexLayerParamAlpha::render(S32 x, S32 y, S32 width, S32 height) mCachedProcessedTexture->setAddressMode(LLTexUnit::TAM_CLAMP); } +#if GL_VERSION_1_1 LLGLSNoAlphaTest gls_no_alpha_test; +#endif gGL.getTexUnit(0)->bind(mCachedProcessedTexture); gl_rect_2d_simple_tex(width, height); gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); @@ -361,7 +367,9 @@ BOOL LLTexLayerParamAlpha::render(S32 x, S32 y, S32 width, S32 height) } else { +#if GL_VERSION_1_1 LLGLDisable no_alpha(GL_ALPHA_TEST); +#endif gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); gGL.color4f(0.f, 0.f, 0.f, effective_weight); gl_rect_2d_simple(width, height); |