Page MenuHome

GPU: Fix Segmentation Fault Freeing Failed Shader
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Aug 28 2020, 8:15 AM.

Details

Summary

The CPP Shader class does not initialize the interface attribute.
What will crash when deleting the shader.

Diff Detail

Repository
rB Blender

Event Timeline

Jeroen Bakker (jbakker) requested review of this revision.Aug 28 2020, 8:15 AM
Jeroen Bakker (jbakker) created this revision.
Jeroen Bakker (jbakker) retitled this revision from GPU: Fix Segmentation error when shader fails to compile to GPU: Fix Segmentation Fault Freeing Failed Shader.
This revision is now accepted and ready to land.Aug 28 2020, 1:50 PM

Well actually I would prefer this

class Shader {
 public:
  /** Uniform & attribute locations for shader. */
  ShaderInterface *interface = NULL;