mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 02:20:11 +01:00
Try PIPE_FORMAT_R5G6B5_UNORM for GL_RGB5 request.
This commit is contained in:
parent
77baacbab1
commit
d7aa446369
1 changed files with 2 additions and 0 deletions
|
|
@ -413,6 +413,8 @@ st_choose_pipe_format(struct pipe_context *pipe, GLint internalFormat,
|
|||
case GL_R3_G3_B2:
|
||||
if (pipe->is_format_supported( pipe, PIPE_FORMAT_A1R5G5B5_UNORM, surfType ))
|
||||
return PIPE_FORMAT_A1R5G5B5_UNORM;
|
||||
if (pipe->is_format_supported( pipe, PIPE_FORMAT_R5G6B5_UNORM, surfType ))
|
||||
return PIPE_FORMAT_R5G6B5_UNORM;
|
||||
return default_rgba_format( pipe, surfType );
|
||||
|
||||
case GL_ALPHA:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue