mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
intel: Turn a test in miptree_match_image into an assert.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
12751ef2a7
commit
73c376bbde
1 changed files with 5 additions and 2 deletions
|
|
@ -601,8 +601,11 @@ intel_miptree_match_image(struct intel_mipmap_tree *mt,
|
|||
GLuint level = intelImage->base.Base.Level;
|
||||
int width, height, depth;
|
||||
|
||||
if (target_to_target(image->TexObject->Target) != mt->target)
|
||||
return false;
|
||||
/* glTexImage* choose the texture object based on the target passed in, and
|
||||
* objects can't change targets over their lifetimes, so this should be
|
||||
* true.
|
||||
*/
|
||||
assert(target_to_target(image->TexObject->Target) == mt->target);
|
||||
|
||||
gl_format mt_format = mt->format;
|
||||
if (mt->format == MESA_FORMAT_X8_Z24 && mt->stencil_mt)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue