diff --git a/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp b/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp index 6b9604e1..137a2c66 100644 --- a/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp +++ b/MobileGL/MG_Impl/GLImpl/Texture/GL_Texture.cpp @@ -166,6 +166,7 @@ namespace MobileGL { free(processedPixels); + MGLOG_D("%s: mark mip %d as dirty", __func__, level); textureMipmapObject->MarkStorageDirty(textureUploadingTarget, level, true); } @@ -709,10 +710,11 @@ namespace MobileGL { "Texture object here should always be an object with mipmap"); auto textureMipmapObject = static_cast(textureObject.get()); - MGLOG_D("%s: Allocating %d bytes at mip %d", __func__, internalBytes, level); - // Allocate in TextureObject + MGLOG_D("%s: Allocating %d bytes at mip %d", __func__, internalBytes, level); textureMipmapObject->AllocateStorage(textureUploadingTarget, level, {{width, height, 1}, internalBytes}); + + MGLOG_D("%s: mark mip %d as dirty", __func__, level); textureMipmapObject->MarkStorageDirty(textureUploadingTarget, level, true); if (!originalPixels) {