From 4fff11b74ee7d12cc8b2280d8924196048474415 Mon Sep 17 00:00:00 2001 From: XProger Date: Mon, 22 Mar 2021 03:55:27 +0300 Subject: [PATCH] fix loading screens for TR3 --- src/texture.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/texture.h b/src/texture.h index a9c8d3a..89aaeb4 100644 --- a/src/texture.h +++ b/src/texture.h @@ -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);