[Bf-blender-cvs] [11a1ddfd307] master: Fix T77780 Overlay: Weight colors are not in render in the right colorspace

Clément Foucault noreply at git.blender.org
Wed Jul 1 18:53:53 CEST 2020


Commit: 11a1ddfd30784f42dc785f6d7e01f32cc4cdcd26
Author: Clément Foucault
Date:   Wed Jul 1 18:53:30 2020 +0200
Branches: master
https://developer.blender.org/rB11a1ddfd30784f42dc785f6d7e01f32cc4cdcd26

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

This was just a missing conversion.

===================================================================

M	source/blender/draw/intern/draw_common.c

===================================================================

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);
 }



More information about the Bf-blender-cvs mailing list