Skip to content

mesa: fix fallthrough in glformats

Timothy Arceri requested to merge tarceri/mesa:fix_fallthrough into master

Before 908f8179 this would fallthrough to GL_INVALID_OPERATION if the validation condition was not met. But since that change it will now only return GL_INVALID_OPERATION if !_mesa_has_EXT_texture_compression_bptc(ctx) is true. This seems unintended.

Here we fix up the fallthrough and add the fallthrough comment so this doesn't happen again.

Fixes: 908f8179 ("mesa: expose EXT_texture_compression_bptc in GLES") Closes: #3005 (closed)

Merge request reports