[Feat] (MG_Backend/DirectVulkan): Present frame in eglSwapBuffers.

This commit is contained in:
BZLZHH
2026-02-08 14:58:42 +08:00
parent 55020a1e86
commit 3b2c2028b9
3 changed files with 24 additions and 1 deletions
@@ -102,6 +102,11 @@ namespace MobileGL {
}
EGLBoolean SwapBuffers(EGLDisplay dpy, EGLSurface draw) {
if (!MG_Backend::DirectVulkan::pVulkanRenderer) {
MGLOG_E("EGLForVulkan::SwapBuffers called but VulkanRenderer is null");
return EGL_FALSE;
}
MG_Backend::DirectVulkan::pVulkanRenderer->Present();
return EGL_TRUE;
}