From c6c24d50bdbe59c3d23d0adef990434ce01abfdf Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 14 Mar 2015 20:27:34 -0700 Subject: [PATCH] Extra copy dest formats. --- src/xenia/gpu/gl4/command_processor.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xenia/gpu/gl4/command_processor.cc b/src/xenia/gpu/gl4/command_processor.cc index 4a376772c..65f0e8a74 100644 --- a/src/xenia/gpu/gl4/command_processor.cc +++ b/src/xenia/gpu/gl4/command_processor.cc @@ -2495,6 +2495,14 @@ bool CommandProcessor::IssueCopy() { GLenum read_format; GLenum read_type; switch (copy_dest_format) { + case ColorFormat::k_4_4_4_4: + read_format = GL_RGBA4; + read_type = GL_UNSIGNED_SHORT_4_4_4_4; + break; + case ColorFormat::k_8: + read_format = GL_R8; + read_type = GL_UNSIGNED_BYTE; + break; case ColorFormat::k_8_8_8_8: read_format = copy_dest_swap ? GL_BGRA : GL_RGBA; read_type = GL_UNSIGNED_BYTE;