From 81035d4d956346f759aa50a9619de32b7f1a2af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Sat, 7 Feb 2015 23:12:40 +0200 Subject: [PATCH] mesa:check that texture is not type float _mesa_FramebufferTexture2D MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tapani Pälli --- src/mesa/main/fbobject.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 3305151..2bbefdc 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -2376,6 +2376,14 @@ framebuffer_texture(struct gl_context *ctx, const char *caller, GLenum target, texObj = _mesa_lookup_texture(ctx, texture); if (texObj != NULL) { + + /* Workaround #88905 .. (check table 3.13 in ES 3.0.3 spec) */ + if (texObj->_IsFloat || texObj->_IsHalfFloat){ + _mesa_error(ctx, GL_INVALID_OPERATION, + "glFramebufferTexture%s", caller); + return; + } + if (textarget == 0) { if (layered) { /* We're being called by glFramebufferTexture() and textarget -- 2.1.0