GPU: The base format of *_EXPAND textures is *_FLOAT

This commit is contained in:
DrChat 2017-08-19 21:10:53 -05:00
parent e758e87587
commit 1eac03a11c
1 changed files with 3 additions and 3 deletions

View File

@ -92,11 +92,11 @@ inline TextureFormat GetBaseFormat(TextureFormat texture_format) {
// These formats are used for resampling textures / gamma control. // These formats are used for resampling textures / gamma control.
switch (texture_format) { switch (texture_format) {
case TextureFormat::k_16_EXPAND: case TextureFormat::k_16_EXPAND:
return TextureFormat::k_16; return TextureFormat::k_16_FLOAT;
case TextureFormat::k_16_16_EXPAND: case TextureFormat::k_16_16_EXPAND:
return TextureFormat::k_16_16; return TextureFormat::k_16_16_FLOAT;
case TextureFormat::k_16_16_16_16_EXPAND: case TextureFormat::k_16_16_16_16_EXPAND:
return TextureFormat::k_16_16_16_16; return TextureFormat::k_16_16_16_16_FLOAT;
case TextureFormat::k_8_8_8_8_AS_16_16_16_16: case TextureFormat::k_8_8_8_8_AS_16_16_16_16:
return TextureFormat::k_8_8_8_8; return TextureFormat::k_8_8_8_8;
case TextureFormat::k_DXT1_AS_16_16_16_16: case TextureFormat::k_DXT1_AS_16_16_16_16: