[Fix] (MG_Backend/DirectVulkan): Avoid directly using ANativeWindow in abstracted layers.

This commit is contained in:
BZLZHH
2026-02-01 00:05:50 +08:00
parent 516566321d
commit ad7d145ece
5 changed files with 22 additions and 22 deletions
@@ -24,7 +24,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
class VulkanRenderer {
public:
VulkanRenderer(ANativeWindow* window, const RendererConfig& cfg = {});
VulkanRenderer(NativeWindowType window, const RendererConfig& cfg = {});
~VulkanRenderer();
void Initialize();
@@ -43,7 +43,7 @@ namespace MobileGL::MG_Backend::DirectVulkan {
void WaitIdle();
private:
ANativeWindow* Window = nullptr;
NativeWindowType Window = 0;
RendererConfig Config;
std::unique_ptr<VulkanContext> Ctx;