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:
2020-08-28 15:45:07 +02:00
parent b8f990b0b4
commit 5db5ac611a

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. */