st/mesa: check the texture image level in st_texture_match_image
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 24 Jun 2016 15:54:51 +0000 (17:54 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 1 Jul 2016 15:55:19 +0000 (17:55 +0200)
commit07cc838b105dd3f34526db73064f1f21b452240e
treeda348f48e20f696571eaee71bef15656bedb16cd
parent0ba053b34c29106817568996ac53b41029cf4e4c
st/mesa: check the texture image level in st_texture_match_image

Otherwise, 1x1 images of arbitrarily high level are accepted.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96639#add_comment
Cc: 11.2 12.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_texture.c