Skip to content

Commit

Permalink
physfssdl3.c: add call to SDL_INIT_INTERFACE in create_iostream
Browse files Browse the repository at this point in the history
  • Loading branch information
superzazu authored and sezero committed Dec 26, 2024
1 parent 74c3054 commit 7726d18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extras/physfssdl3.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ static SDL_IOStream *create_iostream(PHYSFS_File *handle)
SDL_SetError("PhysicsFS error: %s", PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
} else {
SDL_IOStreamInterface iface;
SDL_INIT_INTERFACE(&iface);
iface.size = physfsiostream_size;
iface.seek = physfsiostream_seek;
iface.read = physfsiostream_read;
Expand Down

0 comments on commit 7726d18

Please sign in to comment.