Fixes #5811 (closed)
The GL version reported by
epoxyseems to depend on the current GL context, so the GL context to create should be the one determined by
In my environment, the call to
gdk_gl_context_get_matching_versionreports GL version
3.2, and the call to
gdk_gl_version_init_epoxyreports GL version
4.1, I believe this move is in line with the original intent of using the best possible GL version.
Fix a bug in error checking conditions. This avoids unintentional
Legacyof the created OpenGL context.