Skip to content

Commit

Permalink
fix loading screens for TR3
Browse files Browse the repository at this point in the history
  • Loading branch information
XProger committed Mar 22, 2021
1 parent 498c815 commit 4fff11b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,10 @@ struct Texture : GAPI::Texture {
stream.read(height);
stream.seek(2);
stream.read(bpp);
stream.seek(4);
stream.read(size);
stream.seek(8);
stream.seek(offset - stream.pos);

size = width * height * bpp >> 3;
uint8 *data = new uint8[size];
stream.raw(data, size);

Expand Down

0 comments on commit 4fff11b

Please sign in to comment.