From: Brian Paul Date: Sat, 8 Feb 2014 20:39:45 +0000 (-0700) Subject: mesa: update assertion in detach_shader() for geom shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c325ec896545cc909f2f0e359f0bb0513a8a53b5;p=mesa.git mesa: update assertion in detach_shader() for geom shaders Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74723 Cc: "10.0" "10.1" Tested-by: Andreas Boll --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 65b6b16bbc0..97a57a4c219 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -404,6 +404,7 @@ detach_shader(struct gl_context *ctx, GLuint program, GLuint shader) { for (j = 0; j < shProg->NumShaders; j++) { assert(shProg->Shaders[j]->Type == GL_VERTEX_SHADER || + shProg->Shaders[j]->Type == GL_GEOMETRY_SHADER || shProg->Shaders[j]->Type == GL_FRAGMENT_SHADER); assert(shProg->Shaders[j]->RefCount > 0); }