Inherit from the correct interface to be implemented

* Without this, a cast from WrappedID3D11DeviceContext to
  ID3D11DeviceContext3 will not properly adjust the vtables so the
  returned pointer will be invalid.
This commit is contained in:
baldurk
2016-10-30 17:24:36 +01:00
parent a5e6158996
commit 212467a9c5
+1 -1
View File
@@ -147,7 +147,7 @@ size_t BucketForRecordPow2(size_t value)
return index;
}
class WrappedID3D11DeviceContext : public RefCounter, public ID3D11DeviceContext2
class WrappedID3D11DeviceContext : public RefCounter, public ID3D11DeviceContext3
{
private:
friend class WrappedID3D11DeviceContext;