mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user