mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 21:50:34 +01:00
mesa: fix error in _mesa_format_matches_format_and_type() for RGB888
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit b019228d6b)
This commit is contained in:
parent
a341475398
commit
3158636f4c
1 changed files with 1 additions and 1 deletions
|
|
@ -2568,7 +2568,7 @@ _mesa_format_matches_format_and_type(gl_format gl_format,
|
|||
return GL_FALSE;
|
||||
|
||||
case MESA_FORMAT_RGB888:
|
||||
return format == GL_RGB && type == GL_UNSIGNED_BYTE && littleEndian;
|
||||
return format == GL_BGR && type == GL_UNSIGNED_BYTE && littleEndian;
|
||||
|
||||
case MESA_FORMAT_BGR888:
|
||||
return GL_FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue