Commit: 5db5ac611a5cc2645d4c8638c640bc1c2372a6bd Author: Jeroen Bakker Date: Fri Aug 28 15:45:07 2020 +0200 Branches: master https://developer.blender.org/rB5db5ac611a5cc2645d4c8638c640bc1c2372a6bd
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 source/blender/gpu/intern/gpu_shader_private.hh =================================================================== 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. */ _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
