mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
gallium: Only set FRONT_STATUS_COPY_OF_BACK if there is a back buffer.
Fixes potential crash when SwapBuffers is called but there's no back buffer.
This commit is contained in:
parent
a4d952358d
commit
96601ec8e0
1 changed files with 2 additions and 1 deletions
|
|
@ -280,7 +280,8 @@ st_notify_swapbuffers(struct st_framebuffer *stfb)
|
|||
PIPE_FLUSH_SWAPBUFFERS |
|
||||
PIPE_FLUSH_FRAME,
|
||||
NULL );
|
||||
ctx->st->frontbuffer_status = FRONT_STATUS_COPY_OF_BACK;
|
||||
if (st_renderbuffer(stfb->Base.Attachment[BUFFER_BACK_LEFT].Renderbuffer))
|
||||
ctx->st->frontbuffer_status = FRONT_STATUS_COPY_OF_BACK;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue