fix egl extensions loader
This commit is contained in:
@@ -33,7 +33,7 @@ bool egl::Context::create(ANativeWindow* window)
|
||||
Logger::Log("eglInitialize failed");
|
||||
return false;
|
||||
}
|
||||
version = gladLoaderLoadEGL(EGL_DEFAULT_DISPLAY);
|
||||
version = gladLoadEGL(m_display, eglGetProcAddress);
|
||||
std::vector<EGLint> config_attribs =
|
||||
{
|
||||
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT,
|
||||
@@ -86,6 +86,7 @@ bool egl::Context::create(ANativeWindow* window)
|
||||
{
|
||||
glDebugMessageCallback(debug_handler, nullptr);
|
||||
glEnable(GL_DEBUG_OUTPUT);
|
||||
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user