firebird icon indicating copy to clipboard operation
firebird copied to clipboard

ANGLE is not work with some Graphic Card(e.g. Intel HD Graphics Family)

Open andy65007 opened this issue 7 years ago • 10 comments

2017-05-07_184716 2017-05-07_185216 we can simply add one line code: "QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);" in main.c to avoid this problem. this solution only fix the problem for desktop use, I hope someone can add a better solution.

more details please refer to: Strange Behaviour with a Multi-Monitor-Set and OpenGL(https://forum.qt.io/topic/69396/strange-behaviour-with-a-multi-monitor-set-and-opengl/14)

andy65007 avatar May 07 '17 10:05 andy65007

It looks to me like it already tries OpenGL 2.0, so desktop opengl by default. Are all the listed dlls available in the same directory as firebird.exe?

Vogtinator avatar May 07 '17 11:05 Vogtinator

PS: the real error msg is not point ANGLE error when run firebird.exe. it says:" api-ms-win-core-libraryloader-l1-2-0.dll is missing" api-ms-win-core-libraryloader-l1-2-0-dll-is-missing-from-your-computer

andy65007 avatar May 07 '17 11:05 andy65007

That's not good, that dll is part of windows itself. I'm afraid that your installation is apparently broken.

Vogtinator avatar May 07 '17 11:05 Vogtinator

I tried run firebird on several pc, none of them have that dll, only this guy shows "api-ms-win-core-libraryloader-l1-1-0.dll", its version is 1-1-0.

andy65007 avatar May 07 '17 11:05 andy65007

I think maybe it's a bug of ANGLE

andy65007 avatar May 07 '17 11:05 andy65007

I don't think so, can you add the .dll manually to the firebird directory?

Vogtinator avatar May 07 '17 11:05 Vogtinator

yes, I have tried that, manually add dll "api-ms-win-core-libraryloader-l1-2-0.dll" to APP folder, It does not work. so, this issue is not about operation system broken or dll missing, also not about app installation broken, just add "QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);" to main.c can solve this problem.

andy65007 avatar May 08 '17 09:05 andy65007

It does not work.

What happens?

just add "QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);" to main.c can solve this problem.

That is not a solution, it will break on platforms which do not have HW OpenGL.

Vogtinator avatar May 08 '17 09:05 Vogtinator

  1. I really dont know 'what hapens', this issue takes me several days to find out 'what happens' till I find this article: "Strange Behaviour with a Multi-Monitor-Set and OpenGL"(which I mentioned earlier, it solves my problem).
  2. Obviously, add '"QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);" will bring cross-platform problems. And I already mentioned this at first thread in this issue, hope some one can use a better way to solve it, because I'm not good at Qt programming.

andy65007 avatar May 09 '17 01:05 andy65007

The model of my laptop is lenovo E420 with two graphic cards, hope you can find a similer one for testing or just close this issue becasue it rarely happen. We should keep this issue here just for someone like me, it help them out.

andy65007 avatar May 09 '17 01:05 andy65007