mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-26 17:06:51 +00:00
Correct async packing alignment.
Only matters if a framebuffer width is not a multiple of 4, which might not happen anyway.
This commit is contained in:
parent
6a4269b1d0
commit
3a2d1ac28e
@ -1775,19 +1775,19 @@ void FramebufferManager::PackFramebufferAsync_(VirtualFramebuffer *vfb) {
|
||||
pixelType = (reverseOrder ? GL_UNSIGNED_SHORT_4_4_4_4_REV : GL_UNSIGNED_SHORT_4_4_4_4);
|
||||
pixelFormat = GL_RGBA;
|
||||
pixelSize = 2;
|
||||
align = 8;
|
||||
align = 2;
|
||||
break;
|
||||
case GE_FORMAT_5551: // 16 bit RGBA
|
||||
pixelType = (reverseOrder ? GL_UNSIGNED_SHORT_1_5_5_5_REV : GL_UNSIGNED_SHORT_5_5_5_1);
|
||||
pixelFormat = GL_RGBA;
|
||||
pixelSize = 2;
|
||||
align = 8;
|
||||
align = 2;
|
||||
break;
|
||||
case GE_FORMAT_565: // 16 bit RGB
|
||||
pixelType = (reverseOrder ? GL_UNSIGNED_SHORT_5_6_5_REV : GL_UNSIGNED_SHORT_5_6_5);
|
||||
pixelFormat = GL_RGB;
|
||||
pixelSize = 2;
|
||||
align = 8;
|
||||
align = 2;
|
||||
break;
|
||||
case GE_FORMAT_8888: // 32 bit RGBA
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user