load gl with egl not glx

This commit is contained in:
Max Argus
2018-06-15 09:44:30 +02:00
parent 6e828688e7
commit 5dbf2373ad

View File

@@ -207,7 +207,7 @@ void EGLOpenGLWindow::createWindow(const b3gWindowConstructionInfo& ci) {
m_data->egl_context);
printf("Finish creating EGL OpenGL window.\n");
if (!gladLoadGLInternalLoader()) {
if (!gladLoadGL(eglGetProcAddress)) {
fprintf(stderr, "failed to GL with glad.\n");
exit(EXIT_FAILURE);
}