From 212467a9c50d62c45e593eca4c2e94842b3571ba Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 30 Oct 2016 17:24:36 +0100 Subject: [PATCH] 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. --- renderdoc/driver/d3d11/d3d11_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/d3d11/d3d11_context.h b/renderdoc/driver/d3d11/d3d11_context.h index b2b9bcf71..bf499b89f 100644 --- a/renderdoc/driver/d3d11/d3d11_context.h +++ b/renderdoc/driver/d3d11/d3d11_context.h @@ -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;