diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-07-23 20:18:57 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-07-24 17:09:27 -0400 |
commit | f8059c9f3fdd270370737c9eff369eb6d14caa0b (patch) | |
tree | 0e18481d7fa035bc08d654543d7543261b1a2ca7 /src/glsl/glsl_parser_extras.h | |
parent | 56980f107ef64d0a5bfc5d292cc891661e47d0f0 (diff) | |
download | external_mesa3d-f8059c9f3fdd270370737c9eff369eb6d14caa0b.zip external_mesa3d-f8059c9f3fdd270370737c9eff369eb6d14caa0b.tar.gz external_mesa3d-f8059c9f3fdd270370737c9eff369eb6d14caa0b.tar.bz2 |
mesa: fix error checking for getting zero-sized texture images
Commit 17f714836 (mesa: rearrange texture error checking order) moved
the width/height/depth == 0 allowance before checking if the image was
there. This was in part due to depth having to be == 1 for 2D images and
width having to be == 1 for 1D images. Instead relax the height/depth
checks to also accept 0 as valid.
With this change,
bin/arb_direct_state_access-get-textures
starts passing again.
Fixes: 17f714836 (mesa: rearrange texture error checking order)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/glsl/glsl_parser_extras.h')
0 files changed, 0 insertions, 0 deletions