XWayland, Xorg: add an options for choose between OpenGL and OpenGL ES

Konstantin requested to merge rilian-la-te/xserver:gles-as-option into master

This allows to choose between Glamor on OpenGL and Glamor on OpenGL ES via an option (command-line in case of Xwayland, and xorg.conf one in case of Xorg).

Signed-off-by: Konstantin ria.freelander@gmail.com

Fixes #1580 (closed)
CC: @ofourdan (for Xwayland part).

Ideally, wants !1158 (merged) and !934 (merged) (or !1172 (closed)) to be merged, but will work with !948 (merged) alone (on ES3).

Edited by Konstantin

Merge request reports