Bug 1426289 - Cherry-pick angle issue 1155. - r=lenzak

ANGLE cherry-pick: 9088557fe47e0ce1487b248b60acbc740acd7801

    D3D11: Fix dirty current value updates.

    Fixes a bug where subsequent updates to a "current value" (disabled)
    Vertex Attribute would not trigger the state change to D3D11 such that
    the updated buffer handle would be applied to D3D11. Also adds a test
    to cover the problem case.

    This bug was introduced in 2bc947334cad:
    "D3D11: Minor optimizations to vertex attribute application."

    BUG=chromium:779675
    BUG=angleproject:1155

MozReview-Commit-ID: CywgVRYwaKL
This commit is contained in:
Jeff Gilbert 2017-12-19 18:52:37 -08:00
parent ff584c03d1
commit d328c4a35f

View File

@ -1752,6 +1752,9 @@ gl::Error StateManager11::syncCurrentValueAttribs(const gl::State &glState)
currentValueAttrib->attribute = attrib;
currentValueAttrib->binding = &vertexBindings[attrib->bindingIndex];
mDirtyVertexBufferRange.extend(static_cast<unsigned int>(attribIndex));
mInputLayoutIsDirty = true;
ANGLE_TRY(mVertexDataManager.storeCurrentValue(currentValue, currentValueAttrib,
static_cast<size_t>(attribIndex)));
}