mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:36:54 +02:00
Merge branch 'smarter_textures' of https://github.com/highfidelity/hifi into texmex
This commit is contained in:
commit
b6f778633e
1 changed files with 3 additions and 1 deletions
|
@ -127,8 +127,10 @@ Texture::Pixels::Pixels(const Element& format, Size size, const Byte* bytes) :
|
||||||
}
|
}
|
||||||
|
|
||||||
Texture::Pixels::~Pixels() {
|
Texture::Pixels::~Pixels() {
|
||||||
|
if (_storage) {
|
||||||
Texture::updateTextureCPUMemoryUsage(_storage->size(), 0);
|
Texture::updateTextureCPUMemoryUsage(_storage->size(), 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Texture::Storage::assignTexture(Texture* texture) {
|
void Texture::Storage::assignTexture(Texture* texture) {
|
||||||
_texture = texture;
|
_texture = texture;
|
||||||
|
|
Loading…
Reference in a new issue