Forces GL 2.1 core context creation in VideoMode.
Description
Description
Details
Details
- Auditors
nwtour - Committed
vladislavbelov Dec 4 2021, 11:01 PM - Differential Revision
- D4358: Reorganizes GL context creation in VideoMode
- Parents
- rP26030: Adds more flexible dependencies to options.
- Branches
- Unknown
- Tags
- Build Status
Buildable 18801 Build 44618: Trigger Windows Autobuild Build 44617: Post-Commit Build Jenkins Build 44616: Post-Commit Build (macOS) Jenkins
Event Timeline
Comment Actions
Should I raise a concern @nwtour (It's better to post bugs on the commit than the revision btw)
Comment Actions
IMHO Increasing minimum requirements should be accompanied by a human-readable error handler describing those requirements.
ERROR: SetVideoMode failed in SDL_GL_CreateContext: ("Could not create GL context: GLXBadFBConfig") - it is difficult for a casual user to guess which version of the opengl the developers mean
Comment Actions
Could you say was the error before the commit? If not which change triggered the error?
Comment Actions
No, there was no error. Before commit 26031 the game just started
If not which change triggered the error?
I tried all the lines from commit 26031
Commenting this line allows you to launch the game (no forcing the gl version in the environment variable):
--- a/source/ps/VideoMode.cpp +++ b/source/ps/VideoMode.cpp @@ -428,7 +428,7 @@ bool CVideoMode::InitSDL() SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0); #else - SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); + //SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1); #endif
$ glxinfo | grep version server glx version string: 1.4 client glx version string: 1.4 GLX version: 1.4 Max core profile version: 0.0 Max compat profile version: 1.4 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 2.0 OpenGL version string: 1.4 Mesa 20.1.8
Comment Actions
Why? By default, the author of the patch is not subscribed to notifications from the commit. He can easily miss a message.
Comment Actions
Committer is iirc. And if done properly with @author author is too.
It's also easier to keep track of raised concerns than closed revisions.