mirror of https://github.com/bjornbytes/lovr.git
Fix Shader memory leaks;
This commit is contained in:
parent
3c2fc33f1c
commit
67b55ac7f6
|
@ -144,6 +144,9 @@ Shader* lovrShaderCreate(const char* vertexSource, const char* fragmentSource) {
|
|||
|
||||
void lovrShaderDestroy(Shader* shader) {
|
||||
glDeleteProgram(shader->id);
|
||||
mat4_deinit(shader->transform);
|
||||
mat4_deinit(shader->projection);
|
||||
map_deinit(&shader->uniforms);
|
||||
free(shader);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue