Graphics/Material: Fix Configure resetting textures

This commit is contained in:
Jérôme Leclercq
2019-04-12 15:29:15 +02:00
parent 9d195c2750
commit e665ea5373
2 changed files with 9 additions and 0 deletions

View File

@@ -119,6 +119,14 @@ namespace Nz
{
m_pipelineInfo = pipelineInfo;
// Temp and dirty fix for pipeline overriding has*Map
m_pipelineInfo.hasAlphaMap = m_alphaMap.IsValid();
m_pipelineInfo.hasDiffuseMap = m_diffuseMap.IsValid();
m_pipelineInfo.hasEmissiveMap = m_emissiveMap.IsValid();
m_pipelineInfo.hasHeightMap = m_heightMap.IsValid();
m_pipelineInfo.hasNormalMap = m_normalMap.IsValid();
m_pipelineInfo.hasSpecularMap = m_specularMap.IsValid();
InvalidatePipeline();
}