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.

CD3D11MaterialRenderer.cpp material/lastmaterial usage bug?

Postby luthyr » Fri Jun 10, 2016 8:18 pm

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

cpp 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);

cpp Code: Select all
BaseRenderer->OnSetMaterial(material, lastMaterial, resetAllRenderstates, services);
Posts: 69
Joined: Wed Dec 30, 2009 5:47 pm

Return to Bug reports

Who is online

Users browsing this forum: No registered users and 1 guest