aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/errors.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2017-12-12 09:05:46 -0800
committerIan Romanick <[email protected]>2018-01-02 16:23:50 -0800
commitd80be517750ba5e89432f962175bf996a6f52ce0 (patch)
treeb42633fb30e9a3e5d9e7035f619facbb04c83cc4 /src/mesa/main/errors.c
parent0158565924564ec2edca7acd0ccbc33a369ea50d (diff)
mesa: Fold _mesa_record_error into its only caller
Also, the comment on _mesa_record_error was wrong. dd_function_table::Error was not called because that function does not exist. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r--src/mesa/main/errors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index 35a2f66c31c..a9687913627 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -327,7 +327,8 @@ _mesa_error( struct gl_context *ctx, GLenum error, const char *fmtString, ... )
}
/* Set the GL context error state for glGetError. */
- _mesa_record_error(ctx, error);
+ if (ctx->ErrorValue == GL_NO_ERROR)
+ ctx->ErrorValue = error;
}
void