Skip to content

Commit

Permalink
proper signature
Browse files Browse the repository at this point in the history
  • Loading branch information
4z0t authored and Garanas committed Nov 11, 2024
1 parent 084cff3 commit 093cae8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions section/DrawFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ namespace Moho
return t;
}

void ReleaseTexture(Texture *t) {
asm("call 0x004260B0;" : : [t] "a"(t) : "edx", "ecx");
void *ReleaseTexture(Texture *t) {
void *__result;
asm("call 0x004260B0;" : "=a"(__result) : [t] "a"(t) : "edx", "ecx");
return __result;
}

void __stdcall SetTexture(void *batcher, Texture *texture)
Expand Down

0 comments on commit 093cae8

Please sign in to comment.