Fix T77780 Overlay: Weight colors are not in render in the right colorspace

This was just a missing conversion.
This commit is contained in:
Clément Foucault 2020-07-01 18:53:30 +02:00 committed by Jeroen Bakker
parent 080d62d405
commit 52be97a91b
Notes: blender-bot 2023-02-14 11:25:11 +01:00
Referenced by issue #77780, The weight color looks different in 2.83, almost as if it's not smooth.
1 changed files with 1 additions and 1 deletions

View File

@ -509,5 +509,5 @@ static GPUTexture *DRW_create_weight_colorramp_texture(void)
pixels[i][3] = 1.0f;
}
return GPU_texture_create_1d(256, GPU_RGBA8, pixels[0], error);
return GPU_texture_create_1d(256, GPU_SRGB8_A8, pixels[0], error);
}