Fix Memory Leak in Shader Interface

This commit is contained in:
Jeroen Bakker
2020-04-16 16:55:46 +02:00
parent e22e766cf8
commit db600fd639

View File

@@ -257,6 +257,7 @@ GPUShaderInterface *GPU_shaderinterface_create(int32_t program)
input->location = glGetAttribLocation(program, name);
/* Ignore OpenGL names like `gl_BaseInstanceARB`, `gl_InstanceID` and `gl_VertexID`. */
if (input->location == -1) {
MEM_freeN(input);
continue;
}