mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
mesa/st: Handle empty frame-buffers without asserting.
Fixes assertion failures with radeonsi. Tested-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
fd92346c53
commit
878877d3c4
1 changed files with 4 additions and 5 deletions
|
|
@ -147,11 +147,10 @@ update_framebuffer_state( struct st_context *st )
|
|||
}
|
||||
#endif
|
||||
|
||||
/* _mesa_test_framebuffer_completeness refuses framebuffers with no
|
||||
* attachments, so this should never happen.
|
||||
*/
|
||||
assert(framebuffer->width != UINT_MAX);
|
||||
assert(framebuffer->height != UINT_MAX);
|
||||
if (framebuffer->width == UINT_MAX)
|
||||
framebuffer->width = 0;
|
||||
if (framebuffer->height == UINT_MAX)
|
||||
framebuffer->height = 0;
|
||||
|
||||
cso_set_framebuffer(st->cso_context, framebuffer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue