diff options
author | Paul Berry <[email protected]> | 2013-06-17 06:18:59 +0300 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-01 20:23:25 -0700 |
commit | e62ca571999304e1ab25923cc0e351137bd64f16 (patch) | |
tree | 5e62cb6f9d3e6879a0a134cc8663dfb0ecb6869e /src/mesa/main/shared.c | |
parent | bd85ba08bc0593e3fb53003209a3d569d006a98e (diff) |
main: Fix delete_shader_cb() for geometry shaders
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/shared.c')
-rw-r--r-- | src/mesa/main/shared.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index 5ef88098f82..2f73cf3caf2 100644 --- a/src/mesa/main/shared.c +++ b/src/mesa/main/shared.c @@ -218,7 +218,8 @@ delete_shader_cb(GLuint id, void *data, void *userData) { struct gl_context *ctx = (struct gl_context *) userData; struct gl_shader *sh = (struct gl_shader *) data; - if (sh->Type == GL_FRAGMENT_SHADER || sh->Type == GL_VERTEX_SHADER) { + if (sh->Type == GL_FRAGMENT_SHADER || sh->Type == GL_VERTEX_SHADER || + sh->Type == GL_GEOMETRY_SHADER) { ctx->Driver.DeleteShader(ctx, sh); } else { |