Commit f2a0ebb4 authored by Committed by Juan Suárez Romero
arb_get_texture_sub_image: fix expected error when querying a level which...
arb_get_texture_sub_image: fix expected error when querying a level which hasn't been explicitly defined Change expected error from INVALID_OPERATION to INVALID_VALUE when querying a level which hasn't been explicitly defined. The level is valid, however, the level hasn't been explicitly defined so it should have a default width and height of 0, making the 8x8 query produce an INVALID_VALUE. >From the OpenGL 4.6 spec, 8.22 Texture State and Proxy State: "Each initial texture image is null. It has zero width, height, and depth, internal format RGBA, or R8 for buffer textures, component sizes set to zero and component types set to NONE, the compressed flag set to FALSE, a zero compressed size, and the bound buffer object name is zero." >From the GetTextureSubImage errors in 8.11.4: "An INVALID_VALUE error is generated if xoffset + width is greater than the texture’s width, yoffset + height is greater than the texture’s height, or zoffset + depth is greater than the texture’s depth." Reviewed-by: Arthur Huillet <firstname.lastname@example.org> Reviewed-by: Juan A. Suarez <email@example.com>
Showing with 1 addition and 1 deletion