diff options
author | Jeroen Bakker <jbakker> | 2020-08-28 15:27:18 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-08-28 15:32:29 +0300 |
commit | c28432680971f54ebe95cc953606a3a4d3bc5c7c (patch) | |
tree | 850ecd073b152bb7ce30cf502bfa68d8051b3a70 /source/blender/gpu | |
parent | a48d78ce07f4f9dd02ebf879ba026488db80dac5 (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/gpu')
-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. */ |