Skip to content

Commit 038bc7f

Browse files
committed
Fix issue uploading narrow textures in OpenGL.
We had some stride adjustment that is not needed - and we're not passing the stride along, so it can't do the "right thing". Fixes #18254
1 parent 43ae1e3 commit 038bc7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GPU/GLES/TextureCacheGLES.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void TextureCacheGLES::BuildTexture(TexCacheEntry *const entry) {
304304
bc = true;
305305
} else {
306306
int bpp = (int)Draw::DataFormatSizeInBytes(plan.replaced->Format());
307-
stride = std::max(mipWidth * bpp, 16);
307+
stride = mipWidth * bpp;
308308
dataSize = stride * mipHeight;
309309
}
310310
} else {
@@ -314,7 +314,7 @@ void TextureCacheGLES::BuildTexture(TexCacheEntry *const entry) {
314314
} else {
315315
bpp = (int)Draw::DataFormatSizeInBytes(dstFmt);
316316
}
317-
stride = std::max(mipWidth * bpp, 16);
317+
stride = mipWidth * bpp;
318318
dataSize = stride * mipHeight;
319319
}
320320

0 commit comments

Comments
 (0)