diff options
author | Brian Paul <[email protected]> | 2012-06-28 16:07:35 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-06-29 17:19:12 -0600 |
commit | 9dfe92019a6f76943316d84f437ca323c75234bc (patch) | |
tree | c5dcd86265dcceb99251ceabf5dc562bfa24e062 /src | |
parent | b186a9df32bb90cfa50f28f3df56abaffac40d8b (diff) |
st/mesa: use DEBUG_INCOMPLETE_FBO debug flag
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_fbo.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 10f4e09cf0e..e1818abb944 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -57,10 +57,6 @@ #include "util/u_surface.h" -/** Set to 1 to enable extra debug code */ -#define ST_DEBUG_FBO 0 - - static GLboolean st_renderbuffer_alloc_sw_storage(struct gl_context * ctx, struct gl_renderbuffer *rb, @@ -480,9 +476,9 @@ st_finish_render_texture(struct gl_context *ctx, static void st_fbo_invalid(const char *reason) { -#if ST_DEBUG_FBO - debug_printf("Invalid FBO: %s\n", reason); -#endif + if (MESA_DEBUG_FLAGS & DEBUG_INCOMPLETE_FBO) { + _mesa_debug(NULL, "Invalid FBO: %s\n", reason); + } } |