diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llrender/llglslshader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llrender/llglslshader.cpp b/linden/indra/llrender/llglslshader.cpp index 26984e1..5d7375c 100644 --- a/linden/indra/llrender/llglslshader.cpp +++ b/linden/indra/llrender/llglslshader.cpp | |||
@@ -365,7 +365,7 @@ void LLGLSLShader::bindNoShader(void) | |||
365 | glUseProgramObjectARB(0); | 365 | glUseProgramObjectARB(0); |
366 | } | 366 | } |
367 | 367 | ||
368 | S32 LLGLSLShader::enableTexture(S32 uniform, S32 mode) | 368 | S32 LLGLSLShader::enableTexture(S32 uniform, LLTexUnit::eTextureType mode) |
369 | { | 369 | { |
370 | if (uniform < 0 || uniform >= (S32)mTexture.size()) | 370 | if (uniform < 0 || uniform >= (S32)mTexture.size()) |
371 | { | 371 | { |
@@ -376,12 +376,12 @@ S32 LLGLSLShader::enableTexture(S32 uniform, S32 mode) | |||
376 | if (index != -1) | 376 | if (index != -1) |
377 | { | 377 | { |
378 | gGL.getTexUnit(index)->activate(); | 378 | gGL.getTexUnit(index)->activate(); |
379 | glEnable(mode); | 379 | gGL.getTexUnit(index)->enable(mode); |
380 | } | 380 | } |
381 | return index; | 381 | return index; |
382 | } | 382 | } |
383 | 383 | ||
384 | S32 LLGLSLShader::disableTexture(S32 uniform, S32 mode) | 384 | S32 LLGLSLShader::disableTexture(S32 uniform, LLTexUnit::eTextureType mode) |
385 | { | 385 | { |
386 | if (uniform < 0 || uniform >= (S32)mTexture.size()) | 386 | if (uniform < 0 || uniform >= (S32)mTexture.size()) |
387 | { | 387 | { |
@@ -392,7 +392,7 @@ S32 LLGLSLShader::disableTexture(S32 uniform, S32 mode) | |||
392 | if (index != -1) | 392 | if (index != -1) |
393 | { | 393 | { |
394 | gGL.getTexUnit(index)->activate(); | 394 | gGL.getTexUnit(index)->activate(); |
395 | glDisable(mode); | 395 | gGL.getTexUnit(index)->disable(); |
396 | } | 396 | } |
397 | return index; | 397 | return index; |
398 | } | 398 | } |