diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-01 19:53:30 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2020-07-13 18:13:17 +0300 |
commit | 52be97a91b38d1f93a366382e876cfe9a329be58 (patch) | |
tree | 12ba2fefc28930e651f15c17ead4763f25a416fa | |
parent | 080d62d4057b53a8d7c0aa917f61831a5195e0d7 (diff) |
Fix T77780 Overlay: Weight colors are not in render in the right colorspace
This was just a missing conversion.
-rw-r--r-- | source/blender/draw/intern/draw_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c index 2be0249a2cd..aa8dd2f7fa4 100644 --- a/source/blender/draw/intern/draw_common.c +++ b/source/blender/draw/intern/draw_common.c @@ -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); } |