diff options
author | Palmer <palmer@lindenlab.com> | 2010-03-26 13:55:35 -0700 |
---|---|---|
committer | Palmer <palmer@lindenlab.com> | 2010-03-26 13:55:35 -0700 |
commit | eb35a7e167c6facaca8fd2596ae9fff8c8611d33 (patch) | |
tree | d17b1119a8bac9e3b545b8357cbfb0648f28d786 /indra | |
parent | 0afe1fd41dbc3ec593931e6626b210a29130fa0b (diff) |
Davep's LLDrawPoolBump changes from svn/linden/branches/viewer-mesh @ 114046 for deferred rendering
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lldrawpoolbump.cpp | 12 | ||||
-rw-r--r-- | indra/newview/lldrawpoolbump.h | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index d09d4a412f..a4a8dc80b5 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -701,6 +701,18 @@ void LLDrawPoolBump::endBump() gGL.setSceneBlendType(LLRender::BT_ALPHA); } +S32 LLDrawPoolBump::getNumDeferredPasses() +{ + if (gSavedSettings.getBOOL("RenderObjectBump")) + { + return 1; + } + else + { + return 0; + } +} + void LLDrawPoolBump::beginDeferredPass(S32 pass) { if (!gPipeline.hasRenderBatches(LLRenderPass::PASS_BUMP)) diff --git a/indra/newview/lldrawpoolbump.h b/indra/newview/lldrawpoolbump.h index bf940cf1e4..2019f1df26 100644 --- a/indra/newview/lldrawpoolbump.h +++ b/indra/newview/lldrawpoolbump.h @@ -79,7 +79,7 @@ public: void renderBump(); void endBump(); - virtual S32 getNumDeferredPasses() { return 1; } + virtual S32 getNumDeferredPasses(); /*virtual*/ void beginDeferredPass(S32 pass); /*virtual*/ void endDeferredPass(S32 pass); /*virtual*/ void renderDeferred(S32 pass); |