mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-08 03:10:31 +01:00
mesa: Handle integer formats in need_rgb_to_luminance_conversion()
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
6c14b66e40
commit
82abdf209a
1 changed files with 4 additions and 1 deletions
|
|
@ -54,7 +54,10 @@ need_rgb_to_luminance_conversion(mesa_format texFormat, GLenum format)
|
|||
return (baseTexFormat == GL_RG ||
|
||||
baseTexFormat == GL_RGB ||
|
||||
baseTexFormat == GL_RGBA) &&
|
||||
(format == GL_LUMINANCE || format == GL_LUMINANCE_ALPHA);
|
||||
(format == GL_LUMINANCE ||
|
||||
format == GL_LUMINANCE_ALPHA ||
|
||||
format == GL_LUMINANCE_INTEGER_EXT ||
|
||||
format == GL_LUMINANCE_ALPHA_INTEGER_EXT);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue