Skip to content

kms-quads.h: Conditionally include GLES/GL headers

Heinrich Fink requested to merge fix-conditional-gles-header-include into master
Add guard around includes of GLES headers. kms-quads can build with only
GL core + exts headers available, independent of GLES. Unguarded use of
GLES headers would trigger compilation errors when GLES dev packages are
not available, but GL packages are.

This is also better aligned with egl-gles.c, where we either include GL
headers or GLES3, but not both.

Note that when using GLES, we still need to include GLES2 exts header
for prototypes of GL_OES_EGL_image. GL core adds those signatures in its
own glext header file.
Edited by Heinrich Fink

Merge request reports