summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-07-18 06:07:08 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-07-18 06:07:08 +0200
commite7bdf8b22a94c1d7066ef967788e9b7ffe481283 (patch)
treef0f65b4929f7447dd9a6ecd09b3dbe542ab72fd3
parentgl_texture_cache: Do not set texture parameters to buffers (diff)
downloadyuzu-e7bdf8b22a94c1d7066ef967788e9b7ffe481283.tar
yuzu-e7bdf8b22a94c1d7066ef967788e9b7ffe481283.tar.gz
yuzu-e7bdf8b22a94c1d7066ef967788e9b7ffe481283.tar.bz2
yuzu-e7bdf8b22a94c1d7066ef967788e9b7ffe481283.tar.lz
yuzu-e7bdf8b22a94c1d7066ef967788e9b7ffe481283.tar.xz
yuzu-e7bdf8b22a94c1d7066ef967788e9b7ffe481283.tar.zst
yuzu-e7bdf8b22a94c1d7066ef967788e9b7ffe481283.zip
-rw-r--r--src/video_core/textures/texture.h2
1 files changed, 1 insertions, 1 deletions
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 {