diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-08-28 16:45:07 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-08-28 16:45:07 +0300 |
commit | 5db5ac611a5cc2645d4c8638c640bc1c2372a6bd (patch) | |
tree | fe39d68c19d9416f53a61273f7c51a966bae82e7 /source/blender | |
parent | b8f990b0b4ee9acf1178e18b183affd13d2500d3 (diff) |
GPU: Fix Segmentation Fault Freeing Failed Shader
The CPP Shader class does not initialize the interface attribute.
What will crash when deleting the shader.
Reviewed By: Clément Foucault
Differential Revision: https://developer.blender.org/D8740
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader_private.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_private.hh b/source/blender/gpu/intern/gpu_shader_private.hh index 22de1a0f59e..d56a7b2500b 100644 --- a/source/blender/gpu/intern/gpu_shader_private.hh +++ b/source/blender/gpu/intern/gpu_shader_private.hh @@ -36,7 +36,7 @@ namespace gpu { class Shader { public: /** Uniform & attribute locations for shader. */ - ShaderInterface *interface; + ShaderInterface *interface = nullptr; protected: /** For debugging purpose. */ |