[Chore] (MG_Backend/DirectGLES, MG_Impl/Texture): more logging

This commit is contained in:
2026-01-29 17:58:25 +08:00
parent 77aa26661d
commit 5c7457dbc6
2 changed files with 5 additions and 4 deletions
@@ -709,8 +709,11 @@ namespace MobileGL {
"Texture object here should always be an object with mipmap");
auto textureMipmapObject = static_cast<MG_State::GLState::TextureObjectMipmap*>(textureObject.get());
MGLOG_D("%s: Allocating %d bytes at mip %d", __func__, internalBytes, level);
// Allocate in TextureObject
textureMipmapObject->AllocateStorage(textureUploadingTarget, level, {{width, height, 1}, internalBytes});
textureMipmapObject->MarkStorageDirty(textureUploadingTarget, level, true);
if (!originalPixels) {
MGLOG_D("%s: No input pixel and no PBO bound, no pixel transfer", __func__);
@@ -734,8 +737,6 @@ namespace MobileGL {
textureMipmapObject->UpdateMipmapSubData(textureUploadingTarget, level, texelInput);
}
textureMipmapObject->MarkStorageDirty(textureUploadingTarget, level, true);
free(processedPixels);
}