mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-21 14:15:34 +01:00
Irrlicht: Use EGL over GLX (#15286)
This commit is contained in:
@@ -40,8 +40,10 @@ COpenGLDriver::COpenGLDriver(const SIrrlichtCreationParameters ¶ms, io::IFil
|
||||
|
||||
bool COpenGLDriver::initDriver()
|
||||
{
|
||||
ContextManager->generateSurface();
|
||||
ContextManager->generateContext();
|
||||
if (!ContextManager->generateSurface())
|
||||
return false;
|
||||
if (!ContextManager->generateContext())
|
||||
return false;
|
||||
ExposedData = ContextManager->getContext();
|
||||
ContextManager->activateContext(ExposedData, false);
|
||||
GL.LoadAllProcedures(ContextManager);
|
||||
|
||||
Reference in New Issue
Block a user