Remove X11 dependency properly (as it's handled by SDL and EGL)
This commit is contained in:
parent
41baacd9ab
commit
a90844f0dd
|
|
@ -25,9 +25,6 @@ namespace Nz::GL
|
|||
|
||||
EGLContextX11& operator=(const EGLContextX11&) = delete;
|
||||
EGLContextX11& operator=(EGLContextX11&&) = delete;
|
||||
|
||||
private:
|
||||
::Display* m_xdisplay = nullptr;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ namespace Nz::GL
|
|||
{
|
||||
bool EGLContextX11::Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext)
|
||||
{
|
||||
//TODO: Load X11 dynamically
|
||||
|
||||
assert(window.type == WindowManager::X11);
|
||||
|
||||
Destroy(); //< In case a previous display or surface hasn't been released
|
||||
|
|
@ -40,15 +38,4 @@ namespace Nz::GL
|
|||
|
||||
return CreateInternal(configs[configIndex], shareContext);
|
||||
}
|
||||
|
||||
void EGLContextX11::Destroy()
|
||||
{
|
||||
EGLContextBase::Destroy();
|
||||
|
||||
if (m_xdisplay)
|
||||
{
|
||||
XCloseDisplay(m_xdisplay);
|
||||
m_xdisplay = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue