diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-06-30 02:32:00 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-06-30 02:32:00 +0300 |
commit | 062a843bfbe7c9d277a254a45a81c5a35e8d9b2e (patch) | |
tree | d52163a89d3d48a7a42c431a2a8e455502d26222 /source/blender/gpu/shaders/material/gpu_shader_material_glass.glsl | |
parent | f28e59bd742e9cdea5d9cacc848d1759ef59f0a8 (diff) |
EEVEE: Fix undefined behavior when using BSDF nodes inside volume shaders
This should fix T76171 Eevee bsdf shaders glitches
Diffstat (limited to 'source/blender/gpu/shaders/material/gpu_shader_material_glass.glsl')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_glass.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_glass.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_glass.glsl index ece770f0e73..6d782ff18de 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_glass.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_glass.glsl @@ -28,5 +28,5 @@ void node_bsdf_glass( } #else /* Stub glass because it is not compatible with volumetrics. */ -# define node_bsdf_glass +# define node_bsdf_glass(a, b, c, d, e, f) (f = CLOSURE_DEFAULT) #endif |