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:
parent
d76d6429d0
commit
4fa614d35b
|
@ -1,5 +1,3 @@
|
|||
#define SRGB_FAST_APPROXIMATION
|
||||
|
||||
#ifdef SRGB_FAST_APPROXIMATION
|
||||
#define LINEARtoSRGB OECF_sRGBFast
|
||||
#define SRGBtoLINEAR sRGB_OECFFast
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue