summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-10 00:01:21 +0200
committerMarek Olšák <[email protected]>2017-06-22 01:51:02 +0200
commit9c1a6a208269dd2bef819a99d58a0a8bf04b2793 (patch)
tree47d15cc2e91dcaf664ecdc9a3a230d8f01d39f97 /src/mesa
parentbc4e914f959efe61edc47f2b159bed527808475b (diff)
mesa: simplify handling the return value of update_program
Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/state.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 960b5381e9b..5d2d9f001a4 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -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;
}