From 7ecd38461209f303cdc866aeeb00be882365dc5d Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Fri, 29 Jun 2018 19:03:43 +0200 Subject: [PATCH] StrideSel is now part of the texture cache and must be set by RTT --- core/rend/gles/gltex.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/rend/gles/gltex.cpp b/core/rend/gles/gltex.cpp index 4f2da6707..b369d803e 100644 --- a/core/rend/gles/gltex.cpp +++ b/core/rend/gles/gltex.cpp @@ -586,6 +586,9 @@ void ReadRTTBuffer() { for (tsp.TexU = 0; tsp.TexU <= 7 && (8 << tsp.TexU) < w; tsp.TexU++); for (tsp.TexV = 0; tsp.TexV <= 7 && (8 << tsp.TexV) < h; tsp.TexV++); + if (8 << tsp.TexU != w) + tcw.StrideSel = 1; + TextureCacheData *texture_data = getTextureCacheData(tsp, tcw); if (texture_data->texID != 0) glcache.DeleteTextures(1, &texture_data->texID);