Home | History | Annotate | Download | only in main

Lines Matching defs:ERROR

3  * Mesa debugging and error handling functions.
50 static char out_of_memory[] = "Debugging error: out of memory";
59 #undef ERROR
278 if (type_is(type, ERROR)) {
432 goto error;
447 goto error;
459 goto error;
463 error:
703 if (type_is(type, ERROR)) {
852 * Return string version of GL error code.
855 error_string( GLenum error )
857 switch (error) {
883 * When a new type of error is recorded, print a message describing
904 * Report a warning (a recoverable error condition) to stderr if
948 fprintf(stderr, "Mesa %s implementation error: %s\n",
955 should_output(struct gl_context *ctx, GLenum error, const char *fmtString)
978 if (ctx->ErrorValue != error ||
992 * Record an OpenGL state error. These usually occur when the user
996 * run-time via the MESA_DEBUG environment variable), report the error with
1000 * \param error the error value.
1004 _mesa_error( struct gl_context *ctx, GLenum error, const char *fmtString, ... )
1008 do_output = should_output(ctx, error, fmtString);
1022 /* Too long error message. Whoever calls _mesa_error should use
1028 len = _mesa_snprintf(s2, MAXSTRING, "%s in %s", error_string(error), s);
1035 /* Print the error to stderr if needed. */
1037 output_if_debug("Mesa: User error", s2, GL_TRUE);
1040 /* Log the error via ARB_debug_output if needed.*/
1047 /* Set the GL context error state for glGetError. */
1048 _mesa_record_error(ctx, error);
1053 * Report debug information. Print error message to stderr via fprintf().