OSDN Git Service

Update TextureParameter* error for incompatible texture targets
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 7 Aug 2017 04:18:23 +0000 (06:18 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 9 Aug 2017 07:28:08 +0000 (09:28 +0200)
commit4234b36f055b76c0cd3e893ba6c852f16edf6ac7
treefc8705b6be7e829c862e6455e165a89b785f70a5
parentb65a91e5821e3db4baad06d1fa13f02845c06b9d
Update TextureParameter* error for incompatible texture targets

The OpenGL 4.6 specs have been updated so that GetTextureParameter*
with a texture object with an incompatible TEXTURE_TARGET should now
report INVALID_OPERATION instead of INVALID_ENUM.

Fixes:
KHR-GL45.direct_state_access.textures_parameter_errors

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/main/texparam.c