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
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2020-08-28 16:45:07 +0300
committerJeroen Bakker <jeroen@blender.org>2020-08-28 16:45:07 +0300
commit5db5ac611a5cc2645d4c8638c640bc1c2372a6bd (patch)
treefe39d68c19d9416f53a61273f7c51a966bae82e7
parentb8f990b0b4ee9acf1178e18b183affd13d2500d3 (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
-rw-r--r--source/blender/gpu/intern/gpu_shader_private.hh2
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. */