diff options
author | Brian Paul <[email protected]> | 2014-02-08 13:39:45 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-02-08 14:21:28 -0700 |
commit | c325ec896545cc909f2f0e359f0bb0513a8a53b5 (patch) | |
tree | 48a57be9178a92204c38e09edbdd380a7daa7e0f /src/mesa/main/shaderapi.c | |
parent | 6e8d04ac3e9074bffe25a1ef9e6b198caaa30385 (diff) |
mesa: update assertion in detach_shader() for geom shaders
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74723
Cc: "10.0" "10.1" <[email protected]>
Tested-by: Andreas Boll <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r-- | src/mesa/main/shaderapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |