mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 01:30:08 +01:00
meta: Use srcWidth/Height/Depth rather than srcImage->Width and such.
This is equivalent for now, and will differ once we add 1DArray support. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
ec23d5197e
commit
158a7440c3
1 changed files with 3 additions and 3 deletions
|
|
@ -284,9 +284,9 @@ _mesa_meta_GenerateMipmap(struct gl_context *ctx, GLenum target,
|
|||
dstHeight = minify(srcHeight, 1);
|
||||
dstDepth = target == GL_TEXTURE_3D ? minify(srcDepth, 1) : srcDepth;
|
||||
|
||||
if (dstWidth == srcImage->Width &&
|
||||
dstHeight == srcImage->Height &&
|
||||
dstDepth == srcImage->Depth) {
|
||||
if (dstWidth == srcWidth &&
|
||||
dstHeight == srcHeight &&
|
||||
dstDepth == srcDepth) {
|
||||
/* all done */
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue