added an assertion
This commit is contained in:
@@ -454,8 +454,10 @@ static void st_clear(GLcontext *ctx, GLbitfield mask)
|
|||||||
GLuint b;
|
GLuint b;
|
||||||
for (b = 0; b < BUFFER_COUNT; b++) {
|
for (b = 0; b < BUFFER_COUNT; b++) {
|
||||||
if (BUFFER_BITS_COLOR & mask & (1 << b)) {
|
if (BUFFER_BITS_COLOR & mask & (1 << b)) {
|
||||||
clear_color_buffer(ctx,
|
struct gl_renderbuffer *rb
|
||||||
ctx->DrawBuffer->Attachment[b].Renderbuffer);
|
= ctx->DrawBuffer->Attachment[b].Renderbuffer;
|
||||||
|
assert(rb);
|
||||||
|
clear_color_buffer(ctx, rb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user