mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
st/mesa: fail to alloc a renderbuffer if st_choose_renderbuffer_format fails
This fixes:
state_tracker/st_format.c:401:st_pipe_format_to_mesa_format:
Assertion `0' failed.
(cherry picked from commit fb5d9e1199)
Conflicts:
src/mesa/state_tracker/st_cb_fbo.c
This commit is contained in:
parent
3a02a2bf25
commit
b5d293e4fd
1 changed files with 4 additions and 0 deletions
|
|
@ -77,6 +77,10 @@ st_renderbuffer_alloc_storage(struct gl_context * ctx, struct gl_renderbuffer *r
|
|||
else
|
||||
format = st_choose_renderbuffer_format(screen, internalFormat, rb->NumSamples);
|
||||
|
||||
if (format == PIPE_FORMAT_NONE) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* init renderbuffer fields */
|
||||
strb->Base.Width = width;
|
||||
strb->Base.Height = height;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue