projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b186a9d
)
st/mesa: use DEBUG_INCOMPLETE_FBO debug flag
author
Brian Paul
<brianp@vmware.com>
Thu, 28 Jun 2012 22:07:35 +0000
(16:07 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 29 Jun 2012 23:19:12 +0000
(17:19 -0600)
src/mesa/state_tracker/st_cb_fbo.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_fbo.c
b/src/mesa/state_tracker/st_cb_fbo.c
index 10f4e09cf0e2558ee962d93d6ac5b4ac12d62af5..e1818abb9449a0710cde6ca550daf1a9a39a4406 100644
(file)
--- 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);
+ }
}