mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 00:30:11 +01:00
st/mesa: fix renderbuffer pointer check in st_Clear()
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=30694
NOTE: This is a candidate for the 7.9 and 7.10 branches.
(cherry picked from commit efbd33aff9)
This commit is contained in:
parent
8941450010
commit
54c2846f23
1 changed files with 2 additions and 6 deletions
|
|
@ -470,13 +470,9 @@ st_Clear(GLcontext *ctx, GLbitfield mask)
|
|||
if (mask & (1 << b)) {
|
||||
struct gl_renderbuffer *rb
|
||||
= ctx->DrawBuffer->Attachment[b].Renderbuffer;
|
||||
struct st_renderbuffer *strb;
|
||||
struct st_renderbuffer *strb = st_renderbuffer(rb);
|
||||
|
||||
assert(rb);
|
||||
|
||||
strb = st_renderbuffer(rb);
|
||||
|
||||
if (!strb->surface)
|
||||
if (!strb || !strb->surface)
|
||||
continue;
|
||||
|
||||
if (check_clear_color_with_quad( ctx, rb ))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue