From 2b98a023d92117172f9be2607b3cf5a080646491 Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Thu, 6 Sep 2018 17:01:07 +0300 Subject: [PATCH] mesa: add missing return statement for GL_RG_SNORM case MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: 0d356cf4781bece0dc9a7 "mesa: enable EXT_render_snorm extension" Signed-off-by: Danylo Piliaiev Reviewed-by: Eric Engestrom Reviewed-by: Tapani Pälli --- src/mesa/main/fbobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 51e137dce9b..edb86438e39 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -2080,7 +2080,7 @@ _mesa_base_fbo_format(const struct gl_context *ctx, GLenum internalFormat) return _mesa_has_EXT_texture_snorm(ctx) || _mesa_has_EXT_render_snorm(ctx) ? GL_RG : 0; case GL_RG_SNORM: - _mesa_has_EXT_texture_snorm(ctx) ? GL_RG : 0; + return _mesa_has_EXT_texture_snorm(ctx) ? GL_RG : 0; case GL_RG16_SNORM: return _mesa_has_EXT_texture_snorm(ctx) || (_mesa_has_EXT_render_snorm(ctx) && -- 2.30.2