From a18c9fd837687df98df8a95c85b681abb6e3f2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Wed, 3 Jun 2015 10:10:28 +0300 Subject: [PATCH 2/3] mesa: allow unsized format GL_RED for GLES 3.0 with half float MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90748 --- src/mesa/main/glformats.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 1affebc..dcdc3cb 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -1678,6 +1678,9 @@ _mesa_error_check_format_and_type(const struct gl_context *ctx, case GL_LUMINANCE: case GL_ALPHA: return GL_NO_ERROR; + case GL_RED: + if (_mesa_is_gles3(ctx)) + return GL_NO_ERROR; default: return GL_INVALID_OPERATION; } -- 2.1.0