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 <jbakker>2020-08-28 15:27:18 +0300
committerJeroen Bakker <jeroen@blender.org>2020-08-28 15:32:29 +0300
commitc28432680971f54ebe95cc953606a3a4d3bc5c7c (patch)
tree850ecd073b152bb7ce30cf502bfa68d8051b3a70
parenta48d78ce07f4f9dd02ebf879ba026488db80dac5 (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
m---------release/datafiles/locale0
m---------release/scripts/addons0
-rw-r--r--source/blender/gpu/intern/gpu_shader_private.hh2
3 files changed, 1 insertions, 1 deletions
diff --git a/release/datafiles/locale b/release/datafiles/locale
-Subproject 260b439d0fb15e3cd1efe5c120cf24f91d13d85
+Subproject 2a85baf7318e2d8a26a25e6eb8211a2395d44a7
diff --git a/release/scripts/addons b/release/scripts/addons
-Subproject 01cf2f810ad084cb4e2dad6dc7f82f3bc05f2a0
+Subproject 7bd666f5f3a0cb588fa99bf0786dc5ff834b2ea
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. */