CD3D11MaterialRenderer.cpp material/lastmaterial usage bug?

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
luthyr
Posts: 69
Joined: Wed Dec 30, 2009 5:47 pm

CD3D11MaterialRenderer.cpp material/lastmaterial usage bug?

Post by luthyr »

In the shader pipeline trunk, it seems like material was erroneously used twice? The second one should be lastMaterial?

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);
Post Reply