mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-09-18 16:24:28 +00:00
improve EGL context creation
This commit is contained in:
@@ -141,8 +141,13 @@ void EGLOpenGLWindow::createWindow(const b3gWindowConstructionInfo& ci)
|
||||
if (eglGetError() == EGL_SUCCESS && initialized == EGL_TRUE)
|
||||
{
|
||||
m_data->egl_display = display;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "GetDisplay %d failed with error: %x\n", i, eglGetError());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -166,6 +171,10 @@ void EGLOpenGLWindow::createWindow(const b3gWindowConstructionInfo& ci)
|
||||
m_data->egl_display = display;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "GetDisplay %d failed with error: %x\n", m_data->m_renderDevice, eglGetError());
|
||||
}
|
||||
}
|
||||
|
||||
if (!eglInitialize(m_data->egl_display, NULL, NULL))
|
||||
|
||||
Reference in New Issue
Block a user