Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

debugging.html 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <HTML>
  2. <TITLE>Debugging Tips</TITLE>
  3. <link rel="stylesheet" type="text/css" href="mesa.css"></head>
  4. <BODY>
  5. <H1>Debugging Tips</H1>
  6. <p>
  7. Normally Mesa (and OpenGL) records but does not notify the user of
  8. errors. It is up to the application to call
  9. <code>glGetError</code> to check for errors. Mesa supports an
  10. environment variable, MESA_DEBUG, to help with debugging. If
  11. MESA_DEBUG is defined, a message will be printed to stdout whenever
  12. an error occurs.
  13. </p>
  14. <p>
  15. More extensive error checking is done when Mesa is compiled with the
  16. DEBUG symbol defined. You'll have to edit the Make-config file and
  17. add -DDEBUG to the CFLAGS line for your system configuration. You may
  18. also want to replace any optimization flags with the -g flag so you can
  19. use your debugger. After you've edited Make-config type 'make clean'
  20. before recompiling.
  21. </p>
  22. <p>
  23. In your debugger you can set a breakpoint in _mesa_error() to trap Mesa
  24. errors.
  25. </p>
  26. <p>
  27. There is a display list printing/debugging facility. See the end of
  28. src/dlist.c for details.
  29. </p>
  30. </BODY>
  31. </HTML>