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:
Jeroen Bakker
2020-08-28 14:27:18 +02:00
committed by Jeroen Bakker
parent a48d78ce07
commit c284326809
3 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ namespace gpu {
class Shader {
public:
/** Uniform & attribute locations for shader. */
ShaderInterface *interface;
ShaderInterface *interface = nullptr;
protected:
/** For debugging purpose. */