mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
main: Fix delete_shader_cb() for geometry shaders
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
bd85ba08bc
commit
e62ca57199
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue