Return default material when no special material for current texture
This commit is contained in:
@@ -79,7 +79,7 @@ Material* MaterialManager::getMaterialFor(video::ITexture* t,
|
||||
}
|
||||
} // for i
|
||||
|
||||
return NULL;
|
||||
return m_default_material;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user