mesa/textureview: move error checks up higher
authorDave Airlie <airlied@redhat.com>
Tue, 3 May 2016 05:20:48 +0000 (15:20 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 3 May 2016 10:12:52 +0000 (20:12 +1000)
commit30823f997b96e3568bc94827253e3a2b08e86598
treefda53d9544db4c0d9bfa666b23d8630bc40b43a6
parent5541e11b9a1a4aa3b785d5d426276f9eb4795b61
mesa/textureview: move error checks up higher

GL43-CTS.texture_view.errors checks for GL_INVALID_VALUE
here but we catch these problems in the dimensionsOK check
and return the wrong error value.

This fixes:
GL43-CTS.texture_view.errors.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/textureview.c