mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 05:40:39 +02:00
st/mesa: if Z32 is unsupported, prefer Z24 to Z16
This commit is contained in:
parent
888e59fce8
commit
0a7b60f7ed
1 changed files with 2 additions and 2 deletions
|
|
@ -680,10 +680,10 @@ st_choose_format(struct pipe_screen *screen, GLenum internalFormat,
|
|||
case GL_DEPTH_COMPONENT:
|
||||
{
|
||||
static const enum pipe_format formats[] = {
|
||||
PIPE_FORMAT_Z16_UNORM,
|
||||
PIPE_FORMAT_Z32_UNORM,
|
||||
PIPE_FORMAT_Z24_UNORM_S8_USCALED,
|
||||
PIPE_FORMAT_S8_USCALED_Z24_UNORM
|
||||
PIPE_FORMAT_S8_USCALED_Z24_UNORM,
|
||||
PIPE_FORMAT_Z16_UNORM
|
||||
};
|
||||
return find_supported_format(screen, formats, Elements(formats),
|
||||
target, sample_count, bindings, geom_flags);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue