summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/debug.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-05-09 12:09:21 -0600
committerBrian Paul <[email protected]>2012-05-11 16:13:14 -0600
commit93bcf7825d023d3d7108bc47a7a0929338bba6b9 (patch)
tree3d9aee9b44907adcdf48dad0b8913032d1a06e35 /src/mesa/main/debug.c
parent014306578be1f7aeb883e7b22eb255eda82fa011 (diff)
mesa: add DEBUG_INCOMPLETE_TEXTURE, DEBUG_INCOMPLETE_FBO flags
Instead of having to hack the code to enable these debugging options, set them through the MESA_DEBUG env var. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/debug.c')
-rw-r--r--src/mesa/main/debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/debug.c b/src/mesa/main/debug.c
index 0e73fcbfb65..62b8e00c197 100644
--- a/src/mesa/main/debug.c
+++ b/src/mesa/main/debug.c
@@ -204,7 +204,9 @@ set_debug_flags(const char *str)
};
static const struct option opts[] = {
{ "silent", DEBUG_SILENT }, /* turn off debug messages */
- { "flush", DEBUG_ALWAYS_FLUSH } /* flush after each drawing command */
+ { "flush", DEBUG_ALWAYS_FLUSH }, /* flush after each drawing command */
+ { "incomplete_tex", DEBUG_INCOMPLETE_TEXTURE },
+ { "incomplete_fbo", DEBUG_INCOMPLETE_FBO }
};
GLuint i;