Skip to content

Commit

Permalink
refactor: PCTex_CreateTexturePVR
Browse files Browse the repository at this point in the history
  • Loading branch information
krystalgamer committed Oct 4, 2024
1 parent a7be429 commit 70f2c69
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions PCTex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,14 +693,17 @@ INLINE i32 PCTex_CreateTexturePVR(
a5,
a6,
a7);
if (!res)
return -1;

gGlobalTextures[unusedId].pTextureData = pData;
gGlobalTextures[unusedId].field_60 = a3;
gGlobalTextures[unusedId].field_64 = 0x10000;

return unusedId;
if (res)
{
gGlobalTextures[unusedId].pTextureData = pData;
gGlobalTextures[unusedId].field_60 = a3;
gGlobalTextures[unusedId].field_64 = 0x10000;

return unusedId;
}

return -1;
}

// @MEDIUMTODO
Expand Down

0 comments on commit 70f2c69

Please sign in to comment.