Skip to content

gdk: Increase generalization of gl_context_set_required_version

Pablo Correa Gomez requested to merge pabloyoyoista/gtk:gl-warn-general into main

This way the warning provides better information when the user tries to set a OpenGL ES context of a too low version, and avoids the warning getting out-of-sync with the minimum version required.

Also, avoid using gdk_gl_context_get_use_es, since it will always return FALSE because the context hasn't been realized.

See #4763 (comment 1437546)

Edited by Pablo Correa Gomez

Merge request reports