mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 21:50:38 +02:00
swrast: Move assert for 'slice' in to check_map_teximage
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
This commit is contained in:
parent
fce0b55ccb
commit
65cd2f8443
1 changed files with 1 additions and 1 deletions
|
|
@ -188,6 +188,7 @@ check_map_teximage(const struct gl_texture_image *texImage,
|
|||
assert(y < texImage->Height || texImage->Height == 0);
|
||||
assert(x + w <= texImage->Width);
|
||||
assert(y + h <= texImage->Height);
|
||||
assert(slice < texture_slices(texImage));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -240,7 +241,6 @@ _swrast_map_teximage(struct gl_context *ctx,
|
|||
assert(swImage->Buffer);
|
||||
assert(swImage->Buffer == swImage->ImageSlices[0]);
|
||||
|
||||
assert(slice < texture_slices(texImage));
|
||||
map = swImage->ImageSlices[slice];
|
||||
|
||||
/* apply x/y offset to map address */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue