mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Merge pull request #18255 from hrydgard/opengl-remove-stride-adjustment
Fix issue uploading narrow textures in OpenGL.
This commit is contained in:
1 file changed
+2
-2
@@ -304,7 +304,7 @@ void TextureCacheGLES::BuildTexture(TexCacheEntry *const entry) {
|
||||
bc = true;
|
||||
} else {
|
||||
int bpp = (int)Draw::DataFormatSizeInBytes(plan.replaced->Format());
|
||||
stride = std::max(mipWidth * bpp, 16);
|
||||
stride = mipWidth * bpp;
|
||||
dataSize = stride * mipHeight;
|
||||
}
|
||||
} else {
|
||||
@@ -314,7 +314,7 @@ void TextureCacheGLES::BuildTexture(TexCacheEntry *const entry) {
|
||||
} else {
|
||||
bpp = (int)Draw::DataFormatSizeInBytes(dstFmt);
|
||||
}
|
||||
stride = std::max(mipWidth * bpp, 16);
|
||||
stride = mipWidth * bpp;
|
||||
dataSize = stride * mipHeight;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user