Fix copy-paste errors reported by Coverity Scan

This commit is contained in:
baldurk
2017-11-22 11:50:37 +00:00
parent c860d8baa3
commit 4c67de2995
5 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -2727,8 +2727,10 @@ bool WrappedID3D11Device::Serialise_OpenSharedResource(SerialiserType &ser, HAND
{
ID3D11Buffer *stage = NULL;
UINT byteSize = Descriptor.ByteWidth;
RDCEraseEl(Descriptor);
Descriptor.ByteWidth = Descriptor.ByteWidth;
Descriptor.ByteWidth = byteSize;
Descriptor.MiscFlags = 0;
Descriptor.StructureByteStride = 0;
// We don't need to bind this, but IMMUTABLE requires at least one