Fixed es2 configure when both EGL/egl.h and GLES/egl.h are present.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 1 Feb 2011 16:12:11 +0000 (17:12 +0100)
committerSamuel Rødal <samuel.rodal@nokia.com>
Wed, 2 Feb 2011 09:48:28 +0000 (10:48 +0100)
commit186a9f967394d554ce99b8a3313cbc679b54c7c7
tree68c19d4708bc099965a6978095f81a3fc1da74c0
parent216b29f0c976405c718c7bb8e24699d368baac7e
Fixed es2 configure when both EGL/egl.h and GLES/egl.h are present.

Change e0c2861976e06658a1d651941310407c15b0bcde fixed es1 configure by
only picking EGL/egl.h if GLES/egl.h is not found. This broke es2
configure on platforms where both EGL/egl.h and GLES/egl.h are present,
by picking GLES/egl.h instead of EGL/egl.h, which implicitly pulled in
the GLES/gl.h header as well, causing inconsistent declarations due to
both GLES2/gl2.h and GLES/gl.h getting included. Instead, we need to
prioritize depending on whether we're using es1 or es2. For es1, we
prefer GLES/egl.h, and for es2, we prefer EGL/egl.h. If only one of the
headers is found we still use it unconditionally, to preserve the
existing behaviour and minimize the risk of breaking other platforms.

Reviewed-by: Ritt Konstantin
Reviewed-by: Marius Storm-Olsen
configure