[Mesa-dev] [PATCH 2/2] mesa: allow unsized formats GL_RG, GL_RED for GLES 3.0 with half float
Tapani Pälli
tapani.palli at intel.com
Mon Jun 8 01:33:46 PDT 2015
On 06/08/2015 11:14 AM, Tapani Pälli wrote:
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90748
> ---
> src/mesa/main/glformats.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
> index edc4918..aa36cbb 100644
> --- a/src/mesa/main/glformats.c
> +++ b/src/mesa/main/glformats.c
> @@ -1678,6 +1678,10 @@ _mesa_error_check_format_and_type(const struct gl_context *ctx,
> case GL_LUMINANCE:
> case GL_ALPHA:
> return GL_NO_ERROR;
> + case GL_RG:
> + case GL_RED:
> + if (_mesa_is_gles3(ctx) && ctx->Extensions.ARB_texture_rg)
> + return GL_NO_ERROR;
Sigh, that && should be ||, so the intention is to enable this on gles3
and then gles2 if we have ARB_texture_rg. I will send v2 of this.
> default:
> return GL_INVALID_OPERATION;
> }
>
More information about the mesa-dev
mailing list