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
This commit is contained in:
Submodule release/datafiles/locale updated: 260b439d0f...2a85baf731
Submodule release/scripts/addons updated: 01cf2f810a...7bd666f5f3
@@ -36,7 +36,7 @@ namespace gpu {
|
||||
class Shader {
|
||||
public:
|
||||
/** Uniform & attribute locations for shader. */
|
||||
ShaderInterface *interface;
|
||||
ShaderInterface *interface = nullptr;
|
||||
|
||||
protected:
|
||||
/** For debugging purpose. */
|
||||
|
||||
Reference in New Issue
Block a user