From e7bdf8b22a94c1d7066ef967788e9b7ffe481283 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Thu, 18 Jul 2019 01:07:08 -0300 Subject: textures: Fix texture buffer size calculation --- src/video_core/textures/texture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h index e3be018b9..e36bc2c04 100644 --- a/src/video_core/textures/texture.h +++ b/src/video_core/textures/texture.h @@ -213,7 +213,7 @@ struct TICEntry { if (header_version != TICHeaderVersion::OneDBuffer) { return width_minus_1 + 1; } - return (buffer_high_width_minus_one << 16) | buffer_low_width_minus_one; + return ((buffer_high_width_minus_one << 16) | buffer_low_width_minus_one) + 1; } u32 Height() const { -- cgit v1.2.3