[Bf-blender-cvs] [fc8f6e8f7a3] blender2.8: Eevee: Fix Closure define.

Clément Foucault noreply at git.blender.org
Tue Jul 4 11:40:38 CEST 2017


Commit: fc8f6e8f7a3fcc3b17ee7db6291fb9dcb71dc185
Author: Clément Foucault
Date:   Tue Jul 4 11:40:12 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBfc8f6e8f7a3fcc3b17ee7db6291fb9dcb71dc185

Eevee: Fix Closure define.

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

M	source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
M	source/blender/gpu/shaders/gpu_shader_material.glsl

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

diff --git a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
index 2c72df16135..059c579f60a 100644
--- a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
+++ b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl
@@ -28,7 +28,7 @@ struct Closure {
 	float anisotropy;
 };
 
-#define CLOSURE_DEFAULT Closure(vec3(0.0), vec3(0.0), vec3(0.0), 0.0);
+#define CLOSURE_DEFAULT Closure(vec3(0.0), vec3(0.0), vec3(0.0), 0.0)
 
 Closure closure_mix(Closure cl1, Closure cl2, float fac)
 {
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 5765644cd2b..5458eb91199 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -21,7 +21,7 @@ struct Closure {
 	float opacity;
 };
 
-#define CLOSURE_DEFAULT Closure(vec3(0.0), 0.0);
+#define CLOSURE_DEFAULT Closure(vec3(0.0), 0.0)
 
 Closure closure_mix(Closure cl1, Closure cl2, float fac)
 {




More information about the Bf-blender-cvs mailing list