mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
Add guard before calling ctx->Driver.BindProgram
This commit is contained in:
parent
f27c07c99e
commit
b4ebb68202
1 changed files with 2 additions and 1 deletions
|
|
@ -1536,7 +1536,8 @@ void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx )
|
|||
/* Tell the driver about the change. Could define a new target for
|
||||
* this?
|
||||
*/
|
||||
if (ctx->VertexProgram._Current != prev)
|
||||
if (ctx->VertexProgram._Current != prev &&
|
||||
ctx->Driver.BindProgram)
|
||||
ctx->Driver.BindProgram(ctx, GL_VERTEX_PROGRAM_ARB, (struct program *)
|
||||
ctx->VertexProgram._Current);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue