View previous topic :: View next topic |
Author |
Message |
Tatsh Apprentice
Joined: 22 Jul 2007 Posts: 187
|
Posted: Sun Jan 06, 2013 9:37 pm Post subject: [SOLVED] qtdemo does not work; libEGL warning: DRI2: failed |
|
|
I have a GeForce 560 Ti and nvidia-drivers-310.19 installed.
Mesa 9.0.1 is installed with USE flags: "classic egl gallium gles2 llvm nptl openvg pic shared-glapi" (I believe something in Portage requested that 'egl' be added but cannot remember)
When I run qtdemo, the windows show up, renders nothing, and I get these errors in the console:
Code: |
libEGL warning: DRI2: failed to authenticate
QGLTemporaryContext: Error creating EGL context.
libEGL warning: DRI2: failed to authenticate
QEglContext::swapBuffers(): "Bad surface (0x300D)"
|
The 'QEglContext::swapBuffers(): "Bad surface (0x300D)"' goes on forever until I end the app.
Has anyone seen this error before in a Qt app and know how to fix it?
Other things that use OpenGL are working fine, such as Wine running games, and the Dolphin emulator (Wii emulator).
Last edited by Tatsh on Mon Jan 07, 2013 1:18 am; edited 1 time in total |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Mon Jan 07, 2013 12:56 am Post subject: |
|
|
It's an old bug - I thought it's already been fixed.
Basically, the workaround is to build qt-opengl[-egl]. |
|
Back to top |
|
|
Tatsh Apprentice
Joined: 22 Jul 2007 Posts: 187
|
Posted: Mon Jan 07, 2013 1:17 am Post subject: |
|
|
Thanks. That fixes it.
Remove from package.keywords file:
x11-libs/qt-openvg ~amd64
Add to package.use file (just in case):
x11-libs/qt-opengl -egl
x11-libs/qt-gui -egl
x11-libs/qt-demo -openvg
Re-emerge -avDN qt-opengl qt-gui qt-demo |
|
Back to top |
|
|
|