mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 20:50:23 +01:00
mesa: update assertion in detach_shader() for geom shaders
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74723
Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org>
Tested-by: Andreas Boll <andreas.boll.dev@gmail.com>
(cherry picked from commit c325ec8965)
This commit is contained in:
parent
1e6bba58d8
commit
3cefbe5cf5
1 changed files with 1 additions and 0 deletions
|
|
@ -402,6 +402,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue