Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4358 Serge 1
2
3
4
  
5
  Debugging Tips
6
  
7
8
9
 
10
11
  

The Mesa 3D Graphics Library

12
13
 
14
15
16
 
17

Debugging Tips

18
 
19

20
   Normally Mesa (and OpenGL) records but does not notify the user of
21
   errors.  It is up to the application to call
22
   glGetError to check for errors.  Mesa supports an
23
   environment variable, MESA_DEBUG, to help with debugging.  If
24
   MESA_DEBUG is defined, a message will be printed to stdout whenever
25
   an error occurs.
26

27
 
28

29
   More extensive error checking is done when Mesa is compiled with the
30
   DEBUG symbol defined.  You'll have to edit the Make-config file and
31
   add -DDEBUG to the CFLAGS line for your system configuration.  You may
32
   also want to replace any optimization flags with the -g flag so you can
33
   use your debugger.  After you've edited Make-config type 'make clean'
34
   before recompiling.
35

36

37
   In your debugger you can set a breakpoint in _mesa_error() to trap Mesa
38
   errors.
39

40

41
   There is a display list printing/debugging facility.  See the end of
42
   src/dlist.c for details.
43

44
 
45
46
47