diff --git a/shared/sdk/Renderer.hpp b/shared/sdk/Renderer.hpp index 29c791b3..b27a9ed2 100644 --- a/shared/sdk/Renderer.hpp +++ b/shared/sdk/Renderer.hpp @@ -43,7 +43,7 @@ template class DirectXResource : public RenderResource { public: T* get_native_resource() const { - return *(ID3D12Resource**)((uintptr_t)this + sizeof(RenderResource)); + return *(T**)((uintptr_t)this + sizeof(RenderResource)); } private: