Skip to content

Commit 17f00c8

Browse files
committed
SDK (Renderer): Fix copy_texture crash
1 parent e57dcdb commit 17f00c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shared/sdk/Renderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ void RenderContext::copy_texture(Texture* dest, Texture* src, Fence& fence) {
868868

869869
func(this, dest, src, fence);
870870
#else
871-
using CopyTexFn = void (*)(RenderContext*, Texture*, void*, Texture*, void*, Fence&);
871+
using CopyTexFn = void (*)(RenderContext*, Texture*, int32_t, Texture*, int32_t, Fence&);
872872
static auto func = []() -> CopyTexFn {
873873
spdlog::info("Searching for RenderContext::copy_texture (>= TDB82)");
874874

@@ -894,7 +894,7 @@ void RenderContext::copy_texture(Texture* dest, Texture* src, Fence& fence) {
894894
}();
895895

896896
// src, src_subresource, dst, dst_subresource, fence
897-
func(this, src, nullptr, dest, nullptr, fence);
897+
func(this, src, -1, dest, -1, fence);
898898
#endif
899899
//#endif
900900
}

0 commit comments

Comments
 (0)