Code: Select all
void CD3D11MaterialRenderer::OnSetMaterial(const video::SMaterial& material, const video::SMaterial& lastMaterial,
bool resetAllRenderstates, video::IMaterialRendererServices* services)
{
if (material.MaterialType != lastMaterial.MaterialType || resetAllRenderstates)
{
if (BaseRenderer)
BaseRenderer->OnSetMaterial(material, material, resetAllRenderstates, services);
}
Code: Select all
BaseRenderer->OnSetMaterial(material, lastMaterial, resetAllRenderstates, services);