diff options
author | Danylo Piliaiev <[email protected]> | 2018-09-06 17:01:07 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2018-09-06 17:24:53 +0300 |
commit | 2b98a023d92117172f9be2607b3cf5a080646491 (patch) | |
tree | 48b79617846bad41d12fe7747b724ffc60568826 /src/mesa/main | |
parent | e67dadd3a9c4777b9c5189687aa95f9671117739 (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.c | 2 |
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) && |