gl4: minor read format fix

This commit is contained in:
raven02 2015-06-26 22:27:59 +08:00
parent 9dd40e18b4
commit f41c500c43
1 changed files with 4 additions and 4 deletions

View File

@ -2631,7 +2631,7 @@ bool CommandProcessor::IssueCopy() {
read_type = GL_UNSIGNED_SHORT;
break;
case ColorFormat::k_16_FLOAT:
read_format = GL_R16;
read_format = GL_R16F;
read_type = GL_HALF_FLOAT;
break;
case ColorFormat::k_16_16:
@ -2639,15 +2639,15 @@ bool CommandProcessor::IssueCopy() {
read_type = GL_UNSIGNED_SHORT;
break;
case ColorFormat::k_16_16_FLOAT:
read_format = GL_RG16;
read_format = GL_RG16F;
read_type = GL_HALF_FLOAT;
break;
case ColorFormat::k_16_16_16_16:
read_format = GL_RGBA;
read_format = GL_RGBA16;
read_type = GL_UNSIGNED_SHORT;
break;
case ColorFormat::k_16_16_16_16_FLOAT:
read_format = GL_RGBA;
read_format = GL_RGBA16F;
read_type = GL_HALF_FLOAT;
break;
case ColorFormat::k_32_FLOAT: