From 72c1cbdeb3128e955247709c28fe7377c4b5b7ed Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 23 Oct 2023 01:36:20 +1100 Subject: [PATCH] remove custom platform creation from FlutterAngleTexture --- windows/polyvox_filament_plugin.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/windows/polyvox_filament_plugin.h b/windows/polyvox_filament_plugin.h index 50ec325f..078ffb00 100644 --- a/windows/polyvox_filament_plugin.h +++ b/windows/polyvox_filament_plugin.h @@ -16,6 +16,7 @@ #ifdef USE_ANGLE #include "flutter_angle_texture.h" +#include "backend/platforms/PlatformEGL.h" #else #include "opengl_texture_buffer.h" #endif @@ -59,14 +60,15 @@ public: private: #ifdef USE_ANGLE + bool CreateSharedEGLContext(); + bool MakeD3DTexture(uint32_t width, uint32_t height, std::unique_ptr> result); EGLContext _context = NULL; EGLConfig _eglConfig = NULL; EGLDisplay _eglDisplay = NULL; std::unique_ptr _active = nullptr; ID3D11Device* _D3D11Device = nullptr; ID3D11DeviceContext* _D3D11DeviceContext = nullptr; - bool CreateSharedEGLContext(); - bool MakeD3DTexture(uint32_t width, uint32_t height, std::unique_ptr> result); + filament::backend::Platform* _platform = nullptr; #else std::unique_ptr _active = nullptr; std::unique_ptr _inactive = nullptr;