Unify some more framebuffer functions. Leave the GL stuff alone for now due to async.

This commit is contained in:
Henrik Rydgård committed 2017-10-18 11:20:58 +02:00
1 parent f2ea0ce472
commit 4e3a9bc3e3
10 files changed
+65 -121

No files matched your search

+2 -2
View File
@@ -948,9 +948,9 @@ void FramebufferManagerGLES::PackFramebufferSync_(VirtualFramebuffer *vfb, int x
int dstByteOffset = y * vfb->fb_stride * dstBpp;
u8 *dst = Memory::GetPointer(fb_address + dstByteOffset);
GLubyte *packed = nullptr;
u8 *packed = nullptr;
if (!convert) {
packed = (GLubyte *)dst;
packed = (u8 *)dst;
} else {
// End result may be 16-bit but we are reading 32-bit, so there may not be enough space at fb_address
if (!convBuf_ || convBufSize_ < bufSize) {