RHI: generate GLSL shaders of correct version when running on OpenGL ES


OpenGL ES has different shader versions than Desktop OpenGL, which the
existing code was not accounting for.

Check if we are running OpenGL ES to choose the proper GLSL version, and
add the flag QShaderVersion::GlslEs.

This fixes errors like this when running on Android:
No GLSL shader code found (versions tried:  QList(320, 310, 300, 100) )
in baked shader QShader(stage=0 shaders=QList(ShaderKey(1 Version(120
QFlags()) 0)) desc.isValid=true)

Pick-to: 6.5
Change-Id: I6b387962e5cf48cdb0aec8ac3e8348d7847fc20a
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
commit57f190ddfe396d61b7ed284aae263dfeedc8f666
parent640e14d93e9b97c16f53ef65298c0e6ae5ca28cf
authorAurélien Brooke <aurelien@bahiasoft.fr>
committerAurélien Brooke <aurelien@bahiasoft.fr>
commit timeThu, 13 Apr 2023 11:21:40 +0200