summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-04-18 08:30:30 -0600
committerBrian Paul <[email protected]>2012-04-18 08:34:48 -0600
commit168a3b8627861fbb2786839f7e276de82f883e42 (patch)
treed108f50bd62178ee132eedc16a8dfe2c3eb4b37a /src/gallium
parentcf736aa098b2e2600a852ab61f7887a05e8969eb (diff)
pipebuffer: split up assertion
The problem with assert(a && b) is you don't know which term is zero when there's a failure.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c
index 2ea63d6cc79..567303aa55e 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c
@@ -210,7 +210,8 @@ pb_debug_buffer_check(struct pb_debug_buffer *buf)
if(underflow || overflow)
debug_backtrace_dump(buf->create_backtrace, PB_DEBUG_CREATE_BACKTRACE);
- debug_assert(!underflow && !overflow);
+ debug_assert(!underflow);
+ debug_assert(!overflow);
/* re-fill if not aborted */
if(underflow)