Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2019-04-05 16:02:55 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-04-05 16:03:43 +0300
commitdf99c54b5b84a13532a44db06187e1a494de8889 (patch)
treec646797c5ec43544dd916bbcc19eefc3db4ee795 /source
parentd220a87b47e317996e58cf5c597c872bc8970925 (diff)
EEVEE: Fix compilation
Introduced by f0d6879f5c7998be98ac406bd6ddaa5104961206
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl2
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;
}