mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 21:20:21 +01:00
zink: clamp min created fb size to 1x1
this is required by spec Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6263>
This commit is contained in:
parent
9ce1e99913
commit
6feec2d40e
1 changed files with 2 additions and 2 deletions
|
|
@ -492,8 +492,8 @@ create_framebuffer(struct zink_context *ctx)
|
|||
state.attachments[state.num_attachments++] = zink_surface(psurf);
|
||||
}
|
||||
|
||||
state.width = ctx->fb_state.width;
|
||||
state.height = ctx->fb_state.height;
|
||||
state.width = MAX2(ctx->fb_state.width, 1);
|
||||
state.height = MAX2(ctx->fb_state.height, 1);
|
||||
state.layers = MAX2(util_framebuffer_get_num_layers(&ctx->fb_state), 1);
|
||||
state.samples = ctx->fb_state.samples;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue