02b952394a
The GLES2 backend for Cogl is failing to compile because GL_MAX_TEXTURE_UNITS is not defined. Let's define it and provide a wrapper which uses GL_MAX_TEXTURE_IMAGE_UNITS or COGL_GLES2_MAX_TEXTURE_UNITS, whichever is the smallest.