Skip to content

Commit

Permalink
Renderer: Fix code typo in non-usage of template arg
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed May 26, 2024
1 parent 600fbb8 commit 9513c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/sdk/Renderer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ template<typename T>
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:
Expand Down

0 comments on commit 9513c14

Please sign in to comment.