diff options
author | Brian <[email protected]> | 2007-08-13 16:16:42 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-13 18:20:03 -0600 |
commit | 8571c4babf82b2fe78dba06458070eb4010cfc18 (patch) | |
tree | 38f550686e384863f33d65250f039129d701cded /src/mesa/state_tracker | |
parent | 76818b67092579585d9fcb7df1a8c133e6c94a6c (diff) |
added an assertion
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_clear.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index 2583b4f1bd5..80f136e0a67 100644 --- a/src/mesa/state_tracker/st_cb_clear.c +++ b/src/mesa/state_tracker/st_cb_clear.c @@ -454,8 +454,10 @@ static void st_clear(GLcontext *ctx, GLbitfield mask) GLuint b; for (b = 0; b < BUFFER_COUNT; b++) { if (BUFFER_BITS_COLOR & mask & (1 << b)) { - clear_color_buffer(ctx, - ctx->DrawBuffer->Attachment[b].Renderbuffer); + struct gl_renderbuffer *rb + = ctx->DrawBuffer->Attachment[b].Renderbuffer; + assert(rb); + clear_color_buffer(ctx, rb); } } } |