mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
mesa: fix/add some cases in _mesa_get_linear_internalformat()
In some cases we were converting generic formats to sized formats and vice versa. The point is to simply convert sRGB formats to corresponding linear formats. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
91567b83bf
commit
b98fa6fe6f
1 changed files with 7 additions and 1 deletions
|
|
@ -1229,10 +1229,16 @@ _mesa_get_linear_internalformat(GLenum format)
|
|||
case GL_SRGB8_ALPHA8:
|
||||
return GL_RGBA8;
|
||||
|
||||
case GL_SLUMINANCE:
|
||||
case GL_SLUMINANCE8:
|
||||
return GL_LUMINANCE8;
|
||||
|
||||
case GL_SLUMINANCE:
|
||||
return GL_LUMINANCE;
|
||||
|
||||
case GL_SLUMINANCE_ALPHA:
|
||||
return GL_LUMINANCE_ALPHA;
|
||||
|
||||
case GL_SLUMINANCE8_ALPHA8:
|
||||
return GL_LUMINANCE8_ALPHA8;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue