gl: detect possible GL version prefix
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 12 Jun 2019 15:20:10 +0000 (17:20 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 12 Jun 2019 18:42:34 +0000 (20:42 +0200)
commit634ff541d048fe30232f5a1ea2d59fc24a8a810b
tree81ab86163458942c2f699935a1bd94def09a3e9c
parent5d51c45b17ffac7cf8b0e54edd6346faa6fea6db
gl: detect possible GL version prefix

Instead of checking if the requested GL API is GLES2 (because ANY can
be set) the string is matched with the GLES2 prefix, and if so, then
the string is offset.
gst-libs/gst/gl/gstglcontext.c