mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #18255 from hrydgard/opengl-remove-stride-adjustment
Fix issue uploading narrow textures in OpenGL.
This commit is contained in:
commit
fdb1d69d11
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue