Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>
case GL_RED:
if (_mesa_has_rg_textures(ctx))
return GL_NO_ERROR;
+ /* fallthrough */
default:
return GL_INVALID_OPERATION;
}
case GL_RGBA:
if (_mesa_has_OES_texture_float(ctx) && internalFormat == format)
break;
+ /* fallthrough */
default:
return GL_INVALID_OPERATION;
}
case GL_HALF_FLOAT_OES:
if (_mesa_has_OES_texture_half_float(ctx) && internalFormat == format)
break;
+ /* fallthrough */
default:
return GL_INVALID_OPERATION;
}