ILTERS) {
                    gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER,
                                     gl[minFilter]);

                    // ES3.0 p211
                    const srcMaxSampledMip = (useMips ? q : level_base);

                    // ES3.0 p160-161
                    const textureComplete = (srcMaxSampledMip <= MIPS-1) &&
                                            (level_base <= level_max);

                    for (const magFilter of MAG_FILTERS) {
                    