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 <lepton@chromium.org>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Lepton Wu 4 years ago
parent 9fbc538ac6
commit 4835ffa488
  1. 3
      src/vrend_renderer.c

@ -2689,7 +2689,8 @@ int vrend_create_vertex_elements_state(struct vrend_context *ctx,
case 32: type = GL_INT; break; case 32: type = GL_INT; break;
} }
break; break;
default: }
if (type == GL_FALSE) {
switch (elements[i].src_format) { switch (elements[i].src_format) {
case PIPE_FORMAT_R10G10B10A2_SSCALED: case PIPE_FORMAT_R10G10B10A2_SSCALED:
case PIPE_FORMAT_R10G10B10A2_SNORM: case PIPE_FORMAT_R10G10B10A2_SNORM:

Loading…
Cancel
Save