[Bf-blender-cvs] [df99c54b5b8] master: EEVEE: Fix compilation

Jeroen Bakker noreply at git.blender.org
Fri Apr 5 15:04:49 CEST 2019


Commit: df99c54b5b84a13532a44db06187e1a494de8889
Author: Jeroen Bakker
Date:   Fri Apr 5 15:02:55 2019 +0200
Branches: master
https://developer.blender.org/rBdf99c54b5b84a13532a44db06187e1a494de8889

EEVEE: Fix compilation

Introduced by f0d6879f5c7998be98ac406bd6ddaa5104961206

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

M	source/blender/gpu/shaders/gpu_shader_material.glsl

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

diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 9f3ea4acfb1..034f93cc273 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2099,7 +2099,7 @@ void node_tex_image_linear_no_mip(vec3 co, sampler2D ima, out vec4 color, out fl
 void node_tex_image_nearest(vec3 co, sampler2D ima, out vec4 color, out float alpha)
 {
 	ivec2 pix = ivec2(fract(co.xy) * textureSize(ima, 0).xy);
-	color = clamp(texelFetch(ima, pix, 0));
+	color = safe_color(texelFetch(ima, pix, 0));
 	alpha = color.a;
 }



More information about the Bf-blender-cvs mailing list