[Mesa-dev] [RFC PATCH 4/8] mesa/main/version: Lower the requirements for GLES 3.0
Ilia Mirkin
imirkin at alum.mit.edu
Tue Nov 13 17:45:37 UTC 2018
Is ARB_framebuffer_object really needed? IIRC one of the sticking
points is that it allows differently-sized render targets. Does ES3
allow that? If so, this is fine.
On Tue, Nov 13, 2018 at 12:28 PM Gert Wollny <gw.fossdev at gmail.com> wrote:
>
> From: Gert Wollny <gert.wollny at collabora.com>
>
> GLES 3.0 does not actually require support for EXT_framebuffer_sRGB, it
> only needs support for sRGB attachments to framebuffers.
>
> Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
> ---
> src/mesa/main/version.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
> index 610ba2f08c..2f7ac75a81 100644
> --- a/src/mesa/main/version.c
> +++ b/src/mesa/main/version.c
> @@ -512,8 +512,9 @@ compute_version_es2(const struct gl_extensions *extensions,
> extensions->ARB_texture_float &&
> extensions->ARB_texture_rg &&
> extensions->ARB_depth_buffer_float &&
> - /* extensions->ARB_framebuffer_object && */
> - extensions->EXT_framebuffer_sRGB &&
> + (extensions->EXT_framebuffer_sRGB ||
> + (extensions->ARB_framebuffer_object &&
> + extensions->EXT_sRGB)) &&
> extensions->EXT_packed_float &&
> extensions->EXT_texture_array &&
> extensions->EXT_texture_shared_exponent &&
> --
> 2.18.1
>
More information about the mesa-dev
mailing list