mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
mesa: return GL_LINEAR for ..COLOR_ENCODING if framebuffer_sRGB is unsupported
Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
2dac3f995b
commit
81ae8c6313
1 changed files with 8 additions and 1 deletions
|
|
@ -2072,7 +2072,14 @@ _mesa_GetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment,
|
|||
"glGetFramebufferAttachmentParameterivEXT(pname)");
|
||||
}
|
||||
else {
|
||||
*params = _mesa_get_format_color_encoding(att->Renderbuffer->Format);
|
||||
if (ctx->Extensions.EXT_framebuffer_sRGB) {
|
||||
*params = _mesa_get_format_color_encoding(att->Renderbuffer->Format);
|
||||
}
|
||||
else {
|
||||
/* According to ARB_framebuffer_sRGB, we should return LINEAR
|
||||
* if the sRGB conversion is unsupported. */
|
||||
*params = GL_LINEAR;
|
||||
}
|
||||
}
|
||||
return;
|
||||
case GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue