mesa: Don't call driver RenderTexture for invalid zoffset
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 27 Jul 2013 19:16:56 +0000 (12:16 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Aug 2013 19:18:42 +0000 (12:18 -0700)
commit41485fea7c6061cca9d2706f39fa425da291b260
treea867716275aefd0dac647750d56f26746b5d9015
parentfb49713f8ed099559d255403dc1065a06305e0d8
mesa: Don't call driver RenderTexture for invalid zoffset

This fixes the segfault in the 'invalid slice of 3D texture' and
'invalid layer of an array texture' subtests of piglit's fbo-incomplete
test.

The 'invalid layer of an array texture' subtest still fails.

v2: Fix off-by-one comparison error noticed by Chris Forbes.  Also,
1D_ARRAY textures have Depth == 1.  Instead, compare against Height.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> [v1]
Cc: "9.1 9.2" mesa-stable@lists.freedesktop.org
src/mesa/main/fbobject.c