From: Paul Berry Date: Mon, 17 Jun 2013 03:18:59 +0000 (+0300) Subject: main: Fix delete_shader_cb() for geometry shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e62ca571999304e1ab25923cc0e351137bd64f16;p=mesa.git main: Fix delete_shader_cb() for geometry shaders Reviewed-by: Ian Romanick Reviewed-by: Kenneth Graunke --- 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 {