mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
cda4493f99
Since Cogl version 1.11.2, Cogl no longer includes the EGL headers from cogl.h if COGL_ENABLE_EXPERIMENTAL_2_0_API is defined. Instead the application needs to include cogl-egl.h so that we can avoid polluting the global namespace with X defines. Clutter defines the 2.0 define in its configure.ac and it is relying on Cogl to include the right EGL header in clutter-egl-headers.h so we need to change which header it includes.
42 lines
1.5 KiB
C
42 lines
1.5 KiB
C
/* Clutter.
|
|
* An OpenGL based 'interactive canvas' library.
|
|
* Authored By Matthew Allum <mallum@openedhand.com>
|
|
* Copyright (C) 2006-2007 OpenedHand
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef __CLUTTER_EGL_HEADERS_H__
|
|
#define __CLUTTER_EGL_HEADERS_H__
|
|
|
|
/* Clutter relies on Cogl to abstract GLES1/2/OpenGL and GLX/EGL etc
|
|
* so we simply include the Cogl header to pull in the appropriate EGL
|
|
* header. */
|
|
|
|
#include <cogl/cogl.h>
|
|
|
|
/* Since Cogl 1.11.2, the EGL headers are no longer included from
|
|
* cogl.h when the experimental 2.0 API is requested. Clutter requests
|
|
* this in its configure script so we need to switch the header we
|
|
* include in that case. COGL_VERSION_CHECK is also new in 1.11.2 */
|
|
#ifdef COGL_VERSION_CHECK
|
|
#if COGL_VERSION_CHECK (1, 11, 2)
|
|
#include <cogl/cogl-egl.h>
|
|
#endif
|
|
#endif
|
|
|
|
#endif /* __CLUTTER_EGL_HEADERS_H__ */
|