From 4835ffa488d7cc6c19cbf6e2a1fe9a098a46d05c Mon Sep 17 00:00:00 2001 From: Lepton Wu Date: Sat, 30 Jan 2021 18:41:31 -0800 Subject: [PATCH] vrend: Fixes non-reachable default case. This fixes a regression introduced by !462 which breaks some GLES3 and GLES31 dEQP tests. Fixes: 1b51495 ("vrend: replace if-chain by using switch/case") Signed-off-by: Lepton Wu Reviewed-by: Gert Wollny --- src/vrend_renderer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 7b25c3c..61608d0 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -2689,7 +2689,8 @@ int vrend_create_vertex_elements_state(struct vrend_context *ctx, case 32: type = GL_INT; break; } break; - default: + } + if (type == GL_FALSE) { switch (elements[i].src_format) { case PIPE_FORMAT_R10G10B10A2_SSCALED: case PIPE_FORMAT_R10G10B10A2_SNORM: