mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
st/mesa: use PIPE_BIND_DISPLAY_TARGET when checking for sRGB capability
When we're checking if the framebuffer is sRGB capable, call is_format_supported() with the PIPE_BIND_DISPLAY_TARGET flag. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
6fcb5520b7
commit
6ad1c1eec1
1 changed files with 2 additions and 1 deletions
|
|
@ -452,7 +452,8 @@ st_framebuffer_create(struct st_context *st,
|
|||
st_pipe_format_to_mesa_format(srgb_format) != MESA_FORMAT_NONE &&
|
||||
screen->is_format_supported(screen, srgb_format,
|
||||
PIPE_TEXTURE_2D, stfbi->visual->samples,
|
||||
PIPE_BIND_RENDER_TARGET))
|
||||
(PIPE_BIND_DISPLAY_TARGET |
|
||||
PIPE_BIND_RENDER_TARGET)))
|
||||
mode.sRGBCapable = GL_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue