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