Replace canPromoteAndPopulate with multiple function calls

This commit is contained in:
Ryan Huffman 2017-04-20 23:30:42 -07:00 committed by Atlante45
parent 7cab70deba
commit b2ff0a711e

View file

@ -85,7 +85,7 @@ GLTexture* GL45Backend::syncGPUObject(const TexturePointer& texturePointer) {
if (texture.getUsageType() == TextureUsageType::RESOURCE) {
auto varTex = static_cast<GL45VariableAllocationTexture*> (object);
if (varTex->canPromoteAndPopulate()) {
if (varTex->canPromote() && varTex->canPopulate()) {
GL45VariableAllocationTexture::_memoryPressureStateStale = true;
}