Extra copy dest formats.

This commit is contained in:
Ben Vanik 2015-03-14 20:27:34 -07:00
parent 1358d54ce9
commit c6c24d50bd
1 changed files with 8 additions and 0 deletions

View File

@ -2495,6 +2495,14 @@ bool CommandProcessor::IssueCopy() {
GLenum read_format; GLenum read_format;
GLenum read_type; GLenum read_type;
switch (copy_dest_format) { 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: case ColorFormat::k_8_8_8_8:
read_format = copy_dest_swap ? GL_BGRA : GL_RGBA; read_format = copy_dest_swap ? GL_BGRA : GL_RGBA;
read_type = GL_UNSIGNED_BYTE; read_type = GL_UNSIGNED_BYTE;