From 129091a430a91c43f521d465a1a7fc48fcd1c672 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sun, 15 Feb 2026 21:36:26 +0800 Subject: [PATCH] [Feat] (MG_Test/Backend/DirectVulkan): move Render() outside of eglSwapBuffers --- MobileGL/MG_Impl/EGLImpl/EGLForVulkan/EGLForVulkan.cpp | 1 - MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/MobileGL/MG_Impl/EGLImpl/EGLForVulkan/EGLForVulkan.cpp b/MobileGL/MG_Impl/EGLImpl/EGLForVulkan/EGLForVulkan.cpp index 3702886e..d46d99bb 100644 --- a/MobileGL/MG_Impl/EGLImpl/EGLForVulkan/EGLForVulkan.cpp +++ b/MobileGL/MG_Impl/EGLImpl/EGLForVulkan/EGLForVulkan.cpp @@ -32,7 +32,6 @@ namespace MobileGL { MGLOG_E("EGLForVulkan::SwapBuffers called but VulkanRenderer is null"); return EGL_FALSE; } - MG_Backend::DirectVulkan::pVulkanRenderer->Render(); MG_Backend::DirectVulkan::pVulkanRenderer->Present(); return EGL_TRUE; } diff --git a/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp b/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp index 06cc5472..ca19470a 100644 --- a/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp +++ b/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp @@ -74,7 +74,7 @@ int main() { while(!glfwWindowShouldClose(window)) { glfwPollEvents(); - // MobileGL::MG_Backend::DirectVulkan::pVulkanRenderer->RenderFrame(); + MobileGL::MG_Backend::DirectVulkan::pVulkanRenderer->Render(); eglSwapBuffers(display, surface); }