summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorDanylo Piliaiev <[email protected]>2018-09-06 17:01:07 +0300
committerTapani Pälli <[email protected]>2018-09-06 17:24:53 +0300
commit2b98a023d92117172f9be2607b3cf5a080646491 (patch)
tree48b79617846bad41d12fe7747b724ffc60568826 /src/mesa/main
parente67dadd3a9c4777b9c5189687aa95f9671117739 (diff)
mesa: add missing return statement for GL_RG_SNORM case
Fixes: 0d356cf4781bece0dc9a7 "mesa: enable EXT_render_snorm extension" Signed-off-by: Danylo Piliaiev <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/fbobject.c2
1 files changed, 1 insertions, 1 deletions
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) &&