[Bf-blender-cvs] [52be97a91b3] blender-v2.83-release: Fix T77780 Overlay: Weight colors are not in render in the right colorspace

Clément Foucault noreply at git.blender.org
Mon Jul 13 17:13:32 CEST 2020


Commit: 52be97a91b38d1f93a366382e876cfe9a329be58
Author: Clément Foucault
Date:   Wed Jul 1 18:53:30 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB52be97a91b38d1f93a366382e876cfe9a329be58

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