mirror of
https://github.com/love2d/love.git
synced 2026-08-19 04:06:17 +02:00
vulkan/opengl: fix reported texture memory usage of texture views.
This commit is contained in:
@@ -440,7 +440,8 @@ bool Texture::loadVolatile()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
updateGraphicsMemorySize(true);
|
if (parentView.texture == this)
|
||||||
|
updateGraphicsMemorySize(true);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -286,7 +286,8 @@ bool Texture::loadVolatile()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
updateGraphicsMemorySize(true);
|
if (root)
|
||||||
|
updateGraphicsMemorySize(true);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user