macOS fixes

This commit is contained in:
Jérôme Leclercq
2022-03-20 10:02:31 +01:00
parent cfe136796c
commit a6dce6861d
5 changed files with 18 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ namespace Nz::GL
EGLContextWin32(EGLContextWin32&&) = default;
~EGLContextWin32() = default;
bool Create(const ContextParams& params, const EGLContextBase* shareContext = nullptr);
bool Create(const ContextParams& params, const EGLContextBase* shareContext = nullptr) override;
bool Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext = nullptr) override;
void Destroy() override;

View File

@@ -16,6 +16,7 @@ namespace Nz
{
Invalid,
Cocoa,
X11,
Wayland,
Windows
@@ -27,6 +28,11 @@ namespace Nz
union
{
struct
{
void* window; //< NSWindow*
} cocoa;
struct
{
void* display; //< Display*