mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
gallium: use is_format_supported() to determine if GL_EXT_texture_sRGB is supported
This commit is contained in:
parent
419248b528
commit
13540d38d9
1 changed files with 4 additions and 1 deletions
|
|
@ -155,7 +155,6 @@ void st_init_extensions(struct st_context *st)
|
|||
ctx->Extensions.EXT_texture_env_combine = GL_TRUE;
|
||||
ctx->Extensions.EXT_texture_env_dot3 = GL_TRUE;
|
||||
ctx->Extensions.EXT_texture_lod_bias = GL_TRUE;
|
||||
ctx->Extensions.EXT_texture_sRGB = GL_TRUE; /* XXX temp */
|
||||
|
||||
ctx->Extensions.NV_blend_square = GL_TRUE;
|
||||
ctx->Extensions.NV_texgen_reflection = GL_TRUE;
|
||||
|
|
@ -214,4 +213,8 @@ void st_init_extensions(struct st_context *st)
|
|||
/*ctx->Extensions.ARB_shadow_ambient = GL_TRUE;*/
|
||||
}
|
||||
|
||||
if (screen->is_format_supported(screen, PIPE_FORMAT_R8G8B8A8_SRGB,
|
||||
PIPE_TEXTURE)) {
|
||||
ctx->Extensions.EXT_texture_sRGB = GL_TRUE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue