vk: rt: do not use fast srgb-linear conversion

FAST mode is incorrect for low values and leads to visible rendering artifacts.
This commit is contained in:
Ivan 'provod' Avdeev 2023-10-09 19:49:54 -04:00
parent d76d6429d0
commit 4fa614d35b
2 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,3 @@
#define SRGB_FAST_APPROXIMATION
#ifdef SRGB_FAST_APPROXIMATION
#define LINEARtoSRGB OECF_sRGBFast
#define SRGBtoLINEAR sRGB_OECFFast

View File

@ -594,7 +594,7 @@ static qboolean uploadTexture(vk_texture_t *tex, rgbdata_t *const *const layers,
tex->height = layers[0]->height;
mipCount = CalcMipmapCount( tex, true);
DEBUG("Uploading texture %s, mips=%d, layers=%d", tex->name, mipCount, num_layers);
DEBUG("Uploading texture[%d] %s, mips=%d, layers=%d", (int)(tex-vk_textures), tex->name, mipCount, num_layers);
// TODO this vvv
// // NOTE: only single uncompressed textures can be resamples, no mips, no layers, no sides