summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolpbropaque.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-06-23 23:43:41 -0500
committerDave Parks <davep@lindenlab.com>2022-06-23 23:43:41 -0500
commit088ddc28a4954f8e10627deec951a51fda8cb31d (patch)
treeee54db327ba86f60bb974808af245dacebc371b6 /indra/newview/lldrawpoolpbropaque.cpp
parent39f762c2d1e8666c93689e261380cd70e0fb1749 (diff)
SL-17653 Fix writing of PBR materials to gbuffer.
Diffstat (limited to 'indra/newview/lldrawpoolpbropaque.cpp')
-rw-r--r--indra/newview/lldrawpoolpbropaque.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/lldrawpoolpbropaque.cpp b/indra/newview/lldrawpoolpbropaque.cpp
index f23d2d04a8..86b3ac0d46 100644
--- a/indra/newview/lldrawpoolpbropaque.cpp
+++ b/indra/newview/lldrawpoolpbropaque.cpp
@@ -105,7 +105,7 @@ void LLDrawPoolPBROpaque::renderDeferred(S32 pass)
{
if (params.mTexture.notNull())
{
- gGL.getTexUnit(-1)->bindFast(params.mTexture); // diffuse
+ gGL.getTexUnit(0)->bindFast(params.mTexture); // diffuse
}
}
@@ -120,9 +120,9 @@ void LLDrawPoolPBROpaque::renderDeferred(S32 pass)
}
// Similar to LLDrawPooLMaterials::pushMaterialsBatch(params, getVertexDataMask(), false);
-
- LLRenderPass::applyModelMatrix(params);
- params.mVertexBuffer->setBufferFast(getVertexDataMask());
- params.mVertexBuffer->drawRangeFast(params.mDrawMode, params.mStart, params.mEnd, params.mCount, params.mOffset);
+ LLRenderPass::pushBatch(params, getVertexDataMask(), FALSE, FALSE);
+ //LLRenderPass::applyModelMatrix(params);
+ //params.mVertexBuffer->setBufferFast(getVertexDataMask());
+ //params.mVertexBuffer->drawRangeFast(params.mDrawMode, params.mStart, params.mEnd, params.mCount, params.mOffset);
}
}