diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-01 19:53:30 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-01 19:53:48 +0300 |
commit | 11a1ddfd30784f42dc785f6d7e01f32cc4cdcd26 (patch) | |
tree | 877c54a4548942c2c3ba79fb12636fa3b0e812c1 | |
parent | f228a8948b9a8b51d60690f6c20e605074dc4c1c (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); } |