OSDN Git Service

mesa: Allow depth = 0 parameter for TexImage3D.
authorKevin Rogovin <kevin.rogovin@intel.com>
Mon, 27 Jan 2014 10:16:19 +0000 (12:16 +0200)
committerMatt Turner <mattst88@gmail.com>
Tue, 28 Jan 2014 15:29:14 +0000 (07:29 -0800)
commit1db9ed6495b7ec80980d51e390891841bf28023a
tree9050cec2b1f75a3edad9042c02adddab22d7d5f6
parent7b4592a489a4473bc886ceea11470231e7a98b0f
mesa: Allow depth = 0 parameter for TexImage3D.

Fixes the tests for the depth parameter for TexImage3D calls when the
target type is GL_TEXTURE_2D_ARRAY or GL_TEXTURE_CUBE_MAP_ARRAY
so that a depth value of 0 is accepted. Previously, the check
incorrectly required the depth argument to be atleast 1.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/teximage.c