mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 05:38:31 +09:00
[Fix] (MG_Backend/DirectVulkan): Avoid directly using ANativeWindow in abstracted layers.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user