diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lldrawpoolwater.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/newview/lldrawpoolwater.cpp b/linden/indra/newview/lldrawpoolwater.cpp index d08d004..624b8a8 100644 --- a/linden/indra/newview/lldrawpoolwater.cpp +++ b/linden/indra/newview/lldrawpoolwater.cpp | |||
@@ -98,7 +98,7 @@ void LLDrawPoolWater::restoreGL() | |||
98 | 98 | ||
99 | LLDrawPool *LLDrawPoolWater::instancePool() | 99 | LLDrawPool *LLDrawPoolWater::instancePool() |
100 | { | 100 | { |
101 | llwarns << "Should never be calling instancePool on a water pool!" << llendl; | 101 | llerrs << "Should never be calling instancePool on a water pool!" << llendl; |
102 | return NULL; | 102 | return NULL; |
103 | } | 103 | } |
104 | 104 | ||
@@ -401,15 +401,6 @@ void LLDrawPoolWater::shade() | |||
401 | shader = &gWaterProgram; | 401 | shader = &gWaterProgram; |
402 | } | 402 | } |
403 | 403 | ||
404 | if (deferred_render) | ||
405 | { | ||
406 | gPipeline.bindDeferredShader(*shader); | ||
407 | } | ||
408 | else | ||
409 | { | ||
410 | shader->bind(); | ||
411 | } | ||
412 | |||
413 | sTime = (F32)LLFrameTimer::getElapsedSeconds()*0.5f; | 404 | sTime = (F32)LLFrameTimer::getElapsedSeconds()*0.5f; |
414 | 405 | ||
415 | S32 reftex = shader->enableTexture(LLViewerShaderMgr::WATER_REFTEX); | 406 | S32 reftex = shader->enableTexture(LLViewerShaderMgr::WATER_REFTEX); |
@@ -445,6 +436,15 @@ void LLDrawPoolWater::shade() | |||
445 | 436 | ||
446 | S32 screentex = shader->enableTexture(LLViewerShaderMgr::WATER_SCREENTEX); | 437 | S32 screentex = shader->enableTexture(LLViewerShaderMgr::WATER_SCREENTEX); |
447 | 438 | ||
439 | if (deferred_render) | ||
440 | { | ||
441 | gPipeline.bindDeferredShader(*shader); | ||
442 | } | ||
443 | else | ||
444 | { | ||
445 | shader->bind(); | ||
446 | } | ||
447 | |||
448 | if (screentex > -1) | 448 | if (screentex > -1) |
449 | { | 449 | { |
450 | shader->uniform4fv(LLViewerShaderMgr::WATER_FOGCOLOR, 1, sWaterFogColor.mV); | 450 | shader->uniform4fv(LLViewerShaderMgr::WATER_FOGCOLOR, 1, sWaterFogColor.mV); |