[Mesa-dev] [PATCH 22/34] main: Fix delete_shader_cb() for geometry shaders

Paul Berry stereotype441 at gmail.com
Sun Jul 28 23:03:48 PDT 2013


---
 src/mesa/main/shared.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c
index 5ef8809..2f73cf3 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 {
-- 
1.8.3.4



More information about the mesa-dev mailing list