1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-01-17 21:09:00 +01:00

fix loading screens for TR3

This commit is contained in:
XProger 2021-03-22 03:55:27 +03:00
parent 498c815e20
commit 4fff11b74e

View File

@ -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);