mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
gallium: fix default case in st_new_program()
This commit is contained in:
parent
4b4ac9ed34
commit
13c7491406
1 changed files with 7 additions and 2 deletions
|
|
@ -89,8 +89,12 @@ static void st_use_program( GLcontext *ctx,
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* Called via ctx->Driver.NewProgram() to allocate a new vertex or
|
||||
* fragment program.
|
||||
*/
|
||||
static struct gl_program *st_new_program( GLcontext *ctx,
|
||||
GLenum target,
|
||||
GLenum target,
|
||||
GLuint id )
|
||||
{
|
||||
switch (target) {
|
||||
|
|
@ -118,7 +122,8 @@ static struct gl_program *st_new_program( GLcontext *ctx,
|
|||
}
|
||||
|
||||
default:
|
||||
return _mesa_new_program(ctx, target, id);
|
||||
assert(0);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue