-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix OpenGL check #782
Comments
yea, I'd rather have it not running where it could than having it run where it shouldn't, crashing and getting tons of bug reports. Fixing this is more about research than programmer knowledge. PR wanted. |
The context created by SFML is always in compatibility profile. On linux at least (possibly windows too) the intel drivers will only provide a 3.0 version in compatibility mode. Should we consider ditching SFML? Are there alternatives at all? My knowledge is not great on this either. |
I would also like to ditch SFML, for the primary context creation at least. If we can do that, then it will only be CEF that is requiring us to have a running X11 server on linux which puts us one step closer to being able to run it truely headless on linux. I prototyped this a couple of months ago https://github.com/julusian/casparcg-server/tree/headless-linux It is using EGL, which I think should work on windows (I didnt test it) but likely also needs a proper review by someone who is more familiar with EGL and OpenGL. |
I'm more than happy to merge a PR that replaces SFML context creation in the ogl device for something else (which works on both Linux and Windows). |
If this isn't resolved by #937, we could check for the required extensions to be available instead of relying on glew's gl4.5 check.
|
The build of 27 Mar 11:43 doesn't open for me, claiming that my graphics card doesn't support OpenGL 4.5. |
The latest march 28 Windows build also shows me the openGL error. My GPU is nVidia K2200, which should support openGL 4.5 UPDATE: After upgrading my nVidia driver to 391.33, the openGL error has disappeared. |
I think that the builds I have added to #966 might solve some issues on devices which should support opengl 4.5. If someone could give them a try it would be appreciated. |
Build casparcg-server-d6758db8710e7dd0afec6fd93e8490729c5d7dec-windows opens for me without any complaints about OpenGL. However, connecting to it with a client (2.0 or my own) causes a bunch of exceptions on the console; templates either don't work, or crash the server completely. It may be a different issue, of course, but this is the console trace from a simple
|
Tested on an xps 15 running windows:
After this it just kept spamming that last error. Without screen consumer:
After this windows stopped the execution. Note that AMB played fine on the nvidia gpu. |
@baltedewit @crazyscot Thanks. Ill take another look when I have some time @crazyscot That exception you posted is expected, if you launch scanner.exe that one should go away, but the crashing is not expected |
I have just tested the latest build on Windows 10 with Intel HD530 (i7-6700T) and didnt get any errors in some simple tests, so if anyone is still having issues I would need some help to reproduce and test :) |
So we can avoid getting reports of crashes from users with incompatible GPUs or drivers.
The text was updated successfully, but these errors were encountered: