NORSPEC-251 fixed and 258 not regressed
parent
3eb460f772
commit
b60ea52902
|
|
@ -300,7 +300,7 @@ private:
|
|||
if (tep)
|
||||
{
|
||||
material_ptr = tep->getMaterialParams();
|
||||
if (!material_ptr.isNull())
|
||||
if (!material_ptr.isNull() && !tep->getMaterialID().isNull())
|
||||
{
|
||||
ret = (material_ptr->*(MaterialGetFunc))();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4115,6 +4115,8 @@ void LLVolumeGeometryManager::registerFace(LLSpatialGroup* group, LLFace* facep,
|
|||
LLMaterial* mat = facep->getTextureEntry()->getMaterialParams().get();
|
||||
LLMaterialID mat_id = facep->getTextureEntry()->getMaterialID();
|
||||
|
||||
mat = mat_id.isNull() ? NULL : mat;
|
||||
|
||||
bool batchable = false;
|
||||
|
||||
U32 shader_mask = 0xFFFFFFFF; //no shader
|
||||
|
|
@ -4545,6 +4547,7 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
|
|||
}
|
||||
|
||||
LLMaterial* mat = te->getMaterialParams().get();
|
||||
mat = te->getMaterialID().isNull() ? NULL : mat;
|
||||
|
||||
if (mat && LLPipeline::sRenderDeferred)
|
||||
{
|
||||
|
|
@ -4764,7 +4767,7 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
|
|||
if (gPipeline.canUseWindLightShadersOnObjects()
|
||||
&& LLPipeline::sRenderBump)
|
||||
{
|
||||
if (LLPipeline::sRenderDeferred && te->getMaterialParams().notNull())
|
||||
if (LLPipeline::sRenderDeferred && te->getMaterialParams().notNull() && !te->getMaterialID().isNull())
|
||||
{
|
||||
LLMaterial* mat = te->getMaterialParams().get();
|
||||
if (mat->getNormalID().notNull())
|
||||
|
|
@ -5340,6 +5343,7 @@ void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, std::
|
|||
BOOL is_alpha = (facep->getPoolType() == LLDrawPool::POOL_ALPHA) ? TRUE : FALSE;
|
||||
|
||||
LLMaterial* mat = te->getMaterialParams().get();
|
||||
mat = te->getMaterialID().isNull() ? NULL : mat;
|
||||
|
||||
bool can_be_shiny = true;
|
||||
if (mat)
|
||||
|
|
|
|||
|
|
@ -8691,7 +8691,7 @@ void LLPipeline::renderDeferredLighting()
|
|||
gDeferredPostGammaCorrectProgram.uniform2f(LLShaderMgr::DEFERRED_SCREEN_RES, mScreen.getWidth(), mScreen.getHeight());
|
||||
|
||||
F32 gamma = 1.0/2.2;
|
||||
|
||||
|
||||
gDeferredPostGammaCorrectProgram.uniform1f(LLShaderMgr::TEXTURE_GAMMA, gamma);
|
||||
|
||||
gGL.begin(LLRender::TRIANGLE_STRIP);
|
||||
|
|
|
|||
Loading…
Reference in New Issue