mesa/glformats: make _mesa_gles_error_check_format_and_type() more consistent
authorEric Engestrom <eric@engestrom.ch>
Fri, 3 Jul 2020 00:40:26 +0000 (02:40 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 4 Jul 2020 09:14:42 +0000 (09:14 +0000)
commit9e2afe4f05abc700bb75c373009aa890311bfdc6
treec358f495973d653828b72554a2b233448ee27ca7
parenta573c8cd47c33ae70c310232de1ce6b0acc56a7e
mesa/glformats: make _mesa_gles_error_check_format_and_type() more consistent

Let's consistently use the following code format instead of relying on
falling through to `default`:

    if (!req)
       return GL_INVALID_OPERATION;
    break;

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5729>
src/mesa/main/glformats.c