diff options
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r-- | src/mesa/main/errors.c | 3 |
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 |