[Bf-blender-cvs] [a1a40bfe705] blender2.8: GPUTexture : Un-clamp float rect datas.

Clément Foucault noreply at git.blender.org
Wed Jun 28 22:26:51 CEST 2017


Commit: a1a40bfe70574f124b9c3f1c07d22c2b2d88d4f6
Author: Clément Foucault
Date:   Wed Jun 28 22:24:19 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBa1a40bfe70574f124b9c3f1c07d22c2b2d88d4f6

GPUTexture : Un-clamp float rect datas.

We do not need it anymore because we do not use glu anymore. And we need full range for HDRI Lighting.

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

M	source/blender/gpu/intern/gpu_draw.c

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

diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index 9ed6f387e90..e6c37425828 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -446,8 +446,6 @@ static void gpu_verify_high_bit_srgb_buffer_slice(float *srgb_frect,
 	                            ibuf->x, height,
 	                            ibuf->x, ibuf->x);
 	IMB_buffer_float_unpremultiply(current_srgb_frect, ibuf->x, height);
-	/* Clamp buffer colors to 1.0 to avoid artifacts due to glu for hdr images. */
-	IMB_buffer_float_clamp(current_srgb_frect, ibuf->x, height);
 }
 
 static void verify_thread_do(void *data_v,




More information about the Bf-blender-cvs mailing list