Skip to content
Snippets Groups Projects
Commit 07cc838b authored by Nicolai Hähnle's avatar Nicolai Hähnle
Browse files

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: default avatarIlia Mirkin <imirkin@alum.mit.edu>
parent 0ba053b3
No related branches found
No related tags found
Loading
......@@ -226,6 +226,9 @@ st_texture_match_image(struct st_context *st,
ptLayers != pt->array_size)
return GL_FALSE;
if (image->Level > pt->last_level)
return GL_FALSE;
return GL_TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment