[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31341] trunk/blender/source/blender/gpu/ intern/gpu_material.c: Fix #23303: glsl color correction not working correct for image textures.
Brecht Van Lommel
brecht at blender.org
Sun Aug 15 11:34:18 CEST 2010
Revision: 31341
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31341
Author: blendix
Date: 2010-08-15 11:34:18 +0200 (Sun, 15 Aug 2010)
Log Message:
-----------
Fix #23303: glsl color correction not working correct for image textures.
Modified Paths:
--------------
trunk/blender/source/blender/gpu/intern/gpu_material.c
Modified: trunk/blender/source/blender/gpu/intern/gpu_material.c
===================================================================
--- trunk/blender/source/blender/gpu/intern/gpu_material.c 2010-08-15 09:08:37 UTC (rev 31340)
+++ trunk/blender/source/blender/gpu/intern/gpu_material.c 2010-08-15 09:34:18 UTC (rev 31341)
@@ -1003,7 +1003,7 @@
if(tex->type==TEX_IMAGE)
if(mat->scene->r.color_mgt_flag & R_COLOR_MANAGEMENT)
- GPU_link(mat, "srgb_to_linearrgb", tcol, tcol);
+ GPU_link(mat, "srgb_to_linearrgb", tcol, &tcol);
if(mtex->mapto & MAP_COL) {
GPUNodeLink *colfac;
More information about the Bf-blender-cvs
mailing list