summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorJose Maria Casanova Crespo <[email protected]>2019-08-20 18:34:09 +0200
committerJose Maria Casanova Crespo <[email protected]>2019-08-20 20:45:21 +0100
commit6c904773fe31731929ad46ea19a58deedfc1c1c7 (patch)
tree67613e217da5814566901bc068e98bbd90340940 /src/mesa/main/teximage.c
parentb2839193987ff20438a52d124001f3b310c32315 (diff)
mesa: reverse no_error on compressed_tex_sub_image for TEX_MODE_CURRENT
This fixes the regression introduced on "mesa: refactor compressed_tex_sub_image function" that started to crash KHR-GLES2.texture_3d.compressed_texture.negative_compressed_tex_sub_image Fixes: 7df233d68dc ("mesa: refactor compressed_tex_sub_image function") Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 498b6ae4c44..e940ecd7323 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -5617,9 +5617,9 @@ compressed_tex_sub_image(unsigned dim, GLenum target, GLuint textureOrIndex,
false,
caller);
break;
- case TEX_MODE_CURRENT_ERROR:
- no_error = true;
case TEX_MODE_CURRENT_NO_ERROR:
+ no_error = true;
+ case TEX_MODE_CURRENT_ERROR:
default:
assert(textureOrIndex == 0);
texObj = _mesa_get_current_tex_object(ctx, target);