[Fix] (MG_Impl/GLImpl): refresh generated mipmap storage [skip ci]

This commit is contained in:
2026-07-02 19:22:39 +08:00
parent 91120d86ba
commit 4439162fea
2 changed files with 18 additions and 3 deletions
@@ -614,7 +614,9 @@ namespace MobileGL::MG_Backend::DirectVulkan {
srcWidth, srcHeight, srcDepth);
}
void GenerateMipmap(GLenum target) {
MOBILEGL_ASSERT(pVulkanRenderer, "DirectVulkan::GenerateMipmap called with null VulkanRenderer");
if (!pVulkanRenderer) {
return;
}
MOBILEGL_ASSERT(MG_State::pGLContext, "DirectVulkan::GenerateMipmap called with null GL context");
pVulkanRenderer->GenerateMipmap(target);
}