diff options
author | Iago Toral Quiroga <[email protected]> | 2017-08-07 06:18:24 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2017-08-09 09:28:33 +0200 |
commit | 0415ef9ccd06388c8f60726032f0814b66850312 (patch) | |
tree | 15af9f5968444e68d69925c599392c2b828d4613 /src/mesa/main/texstorage.c | |
parent | 4234b36f055b76c0cd3e893ba6c852f16edf6ac7 (diff) |
TextureStorage1D should return INVALID_OPERATION if target is not a 1D texture
Previous behavior was inconsistent with other texture targets so this has been
fixed in OpenGL 4.6.
Fixes:
KHR-GL45.direct_state_access.textures_storage_errors
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/main/texstorage.c')
-rw-r--r-- | src/mesa/main/texstorage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index e0930abe3f8..44edba33235 100644 --- a/src/mesa/main/texstorage.c +++ b/src/mesa/main/texstorage.c @@ -605,7 +605,7 @@ texturestorage_error(GLuint dims, GLuint texture, GLsizei levels, * can receive unsized formats. */ if (!legal_texobj_target(ctx, dims, texObj->Target)) { - _mesa_error(ctx, GL_INVALID_ENUM, + _mesa_error(ctx, GL_INVALID_OPERATION, "%s(illegal target=%s)", caller, _mesa_enum_to_string(texObj->Target)); return; |