Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Renderer failed to init!!! cannot create EGL context
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Bruce1313
n00b
n00b


Joined: 18 Sep 2018
Posts: 6

PostPosted: Fri Sep 21, 2018 3:12 am    Post subject: Renderer failed to init!!! cannot create EGL context Reply with quote

Hi, everyone, currently i am developing OPENGL application on gentoo minimal 4.14.65 kernel and amd64. I an facing issue related to opengl EGL content creation. If any can help this bug. it would be great. i am putting my logs here. This application works perfectly in gentoo 4.9.95 kernel version. But after updating kernel version i got this error in my application and also dkms packages.

Thanks you.
Code:

[2018-09-20 07:23:16.588] [opengl] [info] using card: /dev/dri/card0.
[2018-09-20 07:23:16.592] [opengl] [info] ignoring unused connector 42.
[2018-09-20 07:23:16.626] [opengl] [info] ignoring unused connector 44.
[2018-09-20 07:23:16.752] [opengl] [info] %-------- Configuring EGL context settings -------- %
[2018-09-20 07:23:16.755] [opengl] [info] EGL major/minor: 1.5.
[2018-09-20 07:23:16.758] [opengl] [info] EGL Version: (1.5 (DRI2)).
[2018-09-20 07:23:16.760] [opengl] [info] EGL Vendor: (Mesa Project).
[2018-09-20 07:23:16.764] [hyperflow] [error] [EGL]: Renderer failed to init!!! cannot create EGL context



this is my code

Code:
auto gl_logger = spd::get("opengl");

   gl_logger->info("{:^30}", "%-------- Configuring EGL context settings -------- %");
   gl_logger->info("EGL major/minor: {0}.{1}.", major, minor);
   gl_logger->info("EGL Version: ({0}).", eglQueryString(this->display, EGL_VERSION));
   gl_logger->info("EGL Vendor: ({0}).", eglQueryString(this->display, EGL_VENDOR));
   gl_logger->debug("EGL extensions: [ {0} ].", eglQueryString(this->display, EGL_EXTENSIONS));
   
   if (!eglBindAPI(EGL_OPENGL_API))
      throw EGLException("cannot bind OpenGL API");

   b = eglChooseConfig(this->display, conf_att, &this->config, 1, &n);
   if (!b || n != 1)
      throw EGLException("cannot find suitable EGL config");

   this->context = eglCreateContext(this->display, this->config, EGL_NO_CONTEXT, ctx_att);
   if (!this->context)
      throw EGLException("cannot create EGL context");
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9067

PostPosted: Fri Sep 21, 2018 3:27 am    Post subject: Reply with quote

Moved from Unsupported Software to Duplicate Threads, given site rules and the existence of "Renderer failed to init!!! cannot create EGL context".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum