mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 08:43:38 +01:00
Unify some more framebuffer functions. Leave the GL stuff alone for now due to async.
This commit is contained in:
1 parent
f2ea0ce472
commit
4e3a9bc3e3
10 files changed
+65
-121
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user