diff options
author | Jakob Bornecrantz <[email protected]> | 2011-03-13 13:15:34 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2011-03-13 13:36:21 +0100 |
commit | f4e6061d88db87b4fc988e02055674c530caacb8 (patch) | |
tree | edac70feb4c0542063f772d36fb786377781356c | |
parent | dfac72208db46a895115d60ca31669ff030757b3 (diff) |
rbug: Skip drawing on disabled shaders
-rw-r--r-- | src/gallium/drivers/rbug/rbug_context.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c index bd0eae9ac46..2c3247e09f1 100644 --- a/src/gallium/drivers/rbug/rbug_context.c +++ b/src/gallium/drivers/rbug/rbug_context.c @@ -112,7 +112,10 @@ rbug_draw_vbo(struct pipe_context *_pipe, const struct pipe_draw_info *info) pipe_mutex_lock(rb_pipe->draw_mutex); rbug_draw_block_locked(rb_pipe, RBUG_BLOCK_BEFORE); - pipe->draw_vbo(pipe, info); + if (!(rb_pipe->curr.fs && rb_pipe->curr.fs->disabled) && + !(rb_pipe->curr.gs && rb_pipe->curr.gs->disabled) && + !(rb_pipe->curr.vs && rb_pipe->curr.vs->disabled)) + pipe->draw_vbo(pipe, info); rbug_draw_block_locked(rb_pipe, RBUG_BLOCK_AFTER); pipe_mutex_unlock(rb_pipe->draw_mutex); |