gl4: minor read format fix
This commit is contained in:
parent
9dd40e18b4
commit
f41c500c43
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue