OpenGLRenderer: Try to fix EGLContext sharing with X11

This commit is contained in:
Jérôme Leclercq
2020-09-01 20:10:09 +02:00
parent f4186fdeac
commit bc2f18c852
2 changed files with 58 additions and 0 deletions

View File

@@ -20,11 +20,15 @@ namespace Nz::GL
EGLContextX11(EGLContextX11&&) = default;
~EGLContextX11() = default;
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;
EGLContextX11& operator=(const EGLContextX11&) = default;
EGLContextX11& operator=(EGLContextX11&&) = default;
private:
::Display* m_xdisplay = nullptr;
};
}