mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
672bc337ba
This avoids explicitly including gl or egl headers in clutter-egl-headers.h. We were getting build failures when building clutter against a libcogl that has runtime support for GL and GLES because cogl-defines.h was including gl.h and then clutter-egl-headers.h was later including GLES2/gl.h with typedef conflicts. Clutter relies on Cogl to abstract GL and GLES and the winsys APIs like EGL and GLX so Clutter should just rely on cogl.h to include the appropriate egl.h in clutter-egl-headers.h. Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com> Reviewed-by: Neil Roberts <neil@linux.intel.com>
31 lines
1.1 KiB
C
31 lines
1.1 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>
|
|
|
|
#endif /* __CLUTTER_EGL_HEADERS_H__ */
|