diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-04-05 16:02:55 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-04-05 16:03:43 +0300 |
commit | df99c54b5b84a13532a44db06187e1a494de8889 (patch) | |
tree | c646797c5ec43544dd916bbcc19eefc3db4ee795 /source/blender/gpu | |
parent | d220a87b47e317996e58cf5c597c872bc8970925 (diff) |
EEVEE: Fix compilation
Introduced by f0d6879f5c7998be98ac406bd6ddaa5104961206
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_material.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |