From e4095c03a30f4df7f5f28aaa71b0a3b12a106ca2 Mon Sep 17 00:00:00 2001 From: Marianne Gagnon Date: Fri, 9 Oct 2015 19:46:53 -0400 Subject: [PATCH] Fix material manager issue --- src/graphics/material_manager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/graphics/material_manager.cpp b/src/graphics/material_manager.cpp index 2f012be7e..274901a96 100644 --- a/src/graphics/material_manager.cpp +++ b/src/graphics/material_manager.cpp @@ -131,8 +131,10 @@ Material* MaterialManager::getDefaultMaterial(video::E_MATERIAL_TYPE shader_type default_material->setShaderType(Material::SHADERTYPE_SOLID_UNLIT); else if (shader_type == Shaders::getShader(ShaderType::ES_OBJECTPASS_REF)) default_material->setShaderType(Material::SHADERTYPE_ALPHA_TEST); - else if (shader_type == Shaders::getShader(ShaderType::ES_OBJECTPASS)) - default_material->setShaderType(Material::SHADERTYPE_ALPHA_BLEND); + //else if (shader_type == Shaders::getShader(ShaderType::ES_OBJECTPASS)) + // default_material->setShaderType(Material::SHADERTYPE_ALPHA_BLEND); + else + default_material->setShaderType(Material::SHADERTYPE_SOLID); m_default_materials[shader_type] = default_material; return default_material;