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>2021-07-09 09:59:51 +0300
committerJeroen Bakker <jeroen@blender.org>2021-07-09 09:59:51 +0300
commit93092876871adf96338ac3b7a1312cc984b84c8a (patch)
tree8bb1881d2eaebb51ec406f28e34f96c1ceff5b00
parent8ff67b51d17288fcd13e1e86ae7027d2bd43ef08 (diff)
Fix crash: access unallocated memory.
-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 06e0b99b276..76f053674b7 100644
--- a/source/blender/gpu/intern/gpu_shader_private.hh
+++ b/source/blender/gpu/intern/gpu_shader_private.hh
@@ -82,7 +82,7 @@ class Shader {
return name;
};
- UniformBuiltinStruct *m_shader_struct;
+ UniformBuiltinStruct *m_shader_struct = nullptr;
void set_shader_struct(GPUUniformBuiltinStructType struct_type)
{
m_shader_struct = new UniformBuiltinStruct(struct_type);