mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-13 06:38:31 +09:00
[Chore] (MG_Impl/Texture): more logs
This commit is contained in:
@@ -166,6 +166,7 @@ namespace MobileGL {
|
|||||||
|
|
||||||
free(processedPixels);
|
free(processedPixels);
|
||||||
|
|
||||||
|
MGLOG_D("%s: mark mip %d as dirty", __func__, level);
|
||||||
textureMipmapObject->MarkStorageDirty(textureUploadingTarget, level, true);
|
textureMipmapObject->MarkStorageDirty(textureUploadingTarget, level, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -709,10 +710,11 @@ namespace MobileGL {
|
|||||||
"Texture object here should always be an object with mipmap");
|
"Texture object here should always be an object with mipmap");
|
||||||
auto textureMipmapObject = static_cast<MG_State::GLState::TextureObjectMipmap*>(textureObject.get());
|
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
|
// Allocate in TextureObject
|
||||||
|
MGLOG_D("%s: Allocating %d bytes at mip %d", __func__, internalBytes, level);
|
||||||
textureMipmapObject->AllocateStorage(textureUploadingTarget, level, {{width, height, 1}, internalBytes});
|
textureMipmapObject->AllocateStorage(textureUploadingTarget, level, {{width, height, 1}, internalBytes});
|
||||||
|
|
||||||
|
MGLOG_D("%s: mark mip %d as dirty", __func__, level);
|
||||||
textureMipmapObject->MarkStorageDirty(textureUploadingTarget, level, true);
|
textureMipmapObject->MarkStorageDirty(textureUploadingTarget, level, true);
|
||||||
|
|
||||||
if (!originalPixels) {
|
if (!originalPixels) {
|
||||||
|
|||||||
Reference in New Issue
Block a user