mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
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 <jordan.l.justen@intel.com>
This commit is contained in:
parent
4234b36f05
commit
0415ef9ccd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue