diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-09-06 10:38:13 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-09-06 10:38:13 +0800 |
commit | 93a309edb2e824514b832f0970ca1927522afc63 (patch) | |
tree | c334db8ae913a3ea7b5159146f1aef82370d2fb8 /indra/llrender/llglslshader.cpp | |
parent | b87cfc3c7eb9e5ea38d2805bfce7f2facc57bd21 (diff) |
Some GL_VERSION_2_0 sampler implementor only code
preprocessed so it doesn't get compiled on non implementors.
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rw-r--r-- | indra/llrender/llglslshader.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index d18ee6d947..308ec1a771 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -793,7 +793,10 @@ GLint LLGLSLShader::mapUniformTextureChannel(GLint location, GLenum type) { LL_PROFILE_ZONE_SCOPED_CATEGORY_SHADER; - if ((type >= GL_SAMPLER_1D_ARB && type <= GL_SAMPLER_2D_RECT_SHADOW_ARB) || + if ( +#if GL_VERSION_2_0 + (type >= GL_SAMPLER_1D_ARB && type <= GL_SAMPLER_2D_RECT_SHADOW_ARB) || +#endif type == GL_SAMPLER_2D_MULTISAMPLE) { //this here is a texture glUniform1i(location, mActiveTextureChannels); |