VK-GL-CTS
VK-GL-CTS copied to clipboard
VK-GL-CTS-opengl-cts-4.6.2 check gltextureParameter* return error enum inconsistent with the ogl spec
In gl4cDirectStateAccessTexturesTests.cpp, there are some gltextureParameter* error enum check not same with ogl spec: In line12141, line12269, line12393, line12517, line12641, line12764, INVALID_ENUM is generated by TextureParameter* if the effective target is either TEXTURE_2D_MULTISAMPLE or TEXTURE_2D_MULTISAMPLE_ARRAY, and pname is any of the sampler states.
According to 4.6 spec (8.10. TEXTURE PARAMETERS):
An INVALID_OPERATION error is generated by TextureParameter* if
the effective target is either TEXTURE_2D_MULTISAMPLE or TEXTURE_2D_-
MULTISAMPLE_ARRAY, and pname is any sampler state from table 23.18.
For me It looks like the checks are correct but some of the comments refer error code for TexParameter* (INVALID_ENUM) and not for TextureParameter* (INVALID_OPERATION).
@Happybqj Thanks for reporting, would you be able to upload a PR to fix the comments?
Done. @mnetsch