mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
ff584c03d1
commit
d328c4a35f
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user