Clone of mesa.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

debugging.html 1.1KB

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