mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
mesa: simplify handling the return value of update_program
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
bc4e914f95
commit
9c1a6a2082
1 changed files with 2 additions and 3 deletions
|
|
@ -90,7 +90,6 @@ update_program(struct gl_context *ctx)
|
|||
const struct gl_program *prevTCP = ctx->TessCtrlProgram._Current;
|
||||
const struct gl_program *prevTEP = ctx->TessEvalProgram._Current;
|
||||
const struct gl_program *prevCP = ctx->ComputeProgram._Current;
|
||||
GLbitfield new_state = 0x0;
|
||||
|
||||
/*
|
||||
* Set the ctx->VertexProgram._Current and ctx->FragmentProgram._Current
|
||||
|
|
@ -213,9 +212,9 @@ update_program(struct gl_context *ctx)
|
|||
ctx->TessEvalProgram._Current != prevTEP ||
|
||||
ctx->TessCtrlProgram._Current != prevTCP ||
|
||||
ctx->ComputeProgram._Current != prevCP)
|
||||
new_state |= _NEW_PROGRAM;
|
||||
return _NEW_PROGRAM;
|
||||
|
||||
return new_state;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue