Build using gles instead of gl to properly enable HDR playback.
Description:
Our wiki implies using gbm and the standalone service will allow for HDR playback, while this is not the case. In order to achieve HDR playback, Kodi must use the gles backend instead of full blown gl. It seems more features are available in Kodi now with gles in stead of gl.
https://wiki.archlinux.org/title/Kodi
I have tested locally with my own builds and confirmed this enables basic HDR playback, though I have gone on to modify the kodi-git package to allow for a few unmerged pulls to be in there to further fix things for my particular setup. I'd love a few more people to test and confirm everything looks and acts as expected, for the sake of safety, however this is the method used by Libreelec and the primary reason HDR "just works" out of the box for them.