diff options
author | Eduardo Lima Mitev <[email protected]> | 2017-02-15 12:14:40 +0100 |
---|---|---|
committer | Eduardo Lima Mitev <[email protected]> | 2017-02-15 19:37:21 +0100 |
commit | 633c959faeae5099fd095f27da7b954e4a36254b (patch) | |
tree | b3999bac71b89f825bee15c2bee64573a35ff9b0 /doxygen/common.doxy | |
parent | a9a517f5300abaa677615aed0f34177c3ca5cde0 (diff) |
getteximage: Return correct error value when texure object is not found
glGetTextureSubImage() and glGetCompressedTextureSubImage() are currently
returning INVALID_OPERATION error when the passed texture argument does not
correspond to an existing texture object. However, the error should be
INVALID_VALUE instead. From OpenGL 4.5 spec PDF, section '8.11. Texture
Queries', page 236:
"An INVALID_VALUE error is generated if texture is not the name of
an existing texture object."
Same wording applies to the compressed version.
The INVALID_OPERATION error is coming from the call to
_mesa_lookup_texture_err(). This patch uses _mesa_lookup_texture() instead
and emits the correct error in the caller.
Fixes: GL45-CTS.get_texture_sub_image.errors_test
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'doxygen/common.doxy')
0 files changed, 0 insertions, 0 deletions