-
Kenneth Graunke authored
When a texture is immutable, we can't tack on extra levels after-the-fact like we could with glTexImage. So check against that level limit and return an error if it's surpassed. This fixes: KHR-GL45.geometry_shader.layered_fbo.fb_texture_invalid_level_number (Based on a patch by Ilia Mirkin.) Reviewed-by: Antia Puentes <apuentes@igalia.com> [imirkin v2] Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
37e128b9