head 1.2; access; symbols netbsd-5-2-3-RELEASE:1.1.1.1.8.1 netbsd-5-1-5-RELEASE:1.1.1.1.8.1 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2 riastradh-drm2-base:1.2 netbsd-5-2-2-RELEASE:1.1.1.1.8.1 netbsd-5-1-4-RELEASE:1.1.1.1.8.1 netbsd-5-2-1-RELEASE:1.1.1.1.8.1 netbsd-5-1-3-RELEASE:1.1.1.1.8.1 netbsd-5-2:1.1.1.1.8.1.0.4 netbsd-5-2-RELEASE:1.1.1.1.8.1 netbsd-5-2-RC1:1.1.1.1.8.1 netbsd-5-1-2-RELEASE:1.1.1.1.8.1 netbsd-5-1-1-RELEASE:1.1.1.1.8.1 netbsd-5-1:1.1.1.1.8.1.0.2 netbsd-5-1-RELEASE:1.1.1.1.8.1 netbsd-5-1-RC4:1.1.1.1.8.1 netbsd-5-1-RC3:1.1.1.1.8.1 netbsd-5-1-RC2:1.1.1.1.8.1 netbsd-5-1-RC1:1.1.1.1.8.1 netbsd-5-0-2-RELEASE:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 netbsd-5-0:1.1.1.1.0.10 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.8 netbsd-5-base:1.1.1.1 netbsd-4-0-1-RELEASE:1.1.1.1 netbsd-4-0:1.1.1.1.0.6 netbsd-4-0-RELEASE:1.1.1.1 netbsd-4-0-RC5:1.1.1.1 netbsd-4-0-RC4:1.1.1.1 netbsd-4-0-RC3:1.1.1.1 netbsd-4-0-RC2:1.1.1.1 netbsd-4-0-RC1:1.1.1.1 abandoned-netbsd-4-base:1.1.1.1 abandoned-netbsd-4:1.1.1.1.0.2 netbsd-4:1.1.1.1.0.4 netbsd-4-base:1.1.1.1 MESA-6_4_1:1.1.1.1 MESA:1.1.1; locks; strict; comment @# @; 1.2 date 2009.04.20.04.09.43; author mrg; state dead; branches; next 1.1; 1.1 date 2006.04.22.15.17.15; author macallan; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2006.04.22.15.17.15; author macallan; state Exp; branches 1.1.1.1.8.1; next ; 1.1.1.1.8.1 date 2010.01.23.18.18.44; author bouyer; state dead; branches; next ; desc @@ 1.2 log @delete extremely old sources we never got around to using. @ text @
Normally Mesa (and OpenGL) records but does not notify the user of
errors. It is up to the application to call
glGetError
to check for errors. Mesa supports an
environment variable, MESA_DEBUG, to help with debugging. If
MESA_DEBUG is defined, a message will be printed to stdout whenever
an error occurs.
More extensive error checking is done when Mesa is compiled with the DEBUG symbol defined. You'll have to edit the Make-config file and add -DDEBUG to the CFLAGS line for your system configuration. You may also want to replace any optimization flags with the -g flag so you can use your debugger. After you've edited Make-config type 'make clean' before recompiling.
In your debugger you can set a breakpoint in _mesa_error() to trap Mesa errors.
There is a display list printing/debugging facility. See the end of src/dlist.c for details.