From eed71654ba6ac810ad835cb5a19624a29a9d18dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 15 Jun 2016 18:51:21 -0400 Subject: [PATCH] Don't pretend we don't have CoglShader We bypass our build configuration to fetch API from a version which isn't the one we actually use. Stop bypassing and just admit that the 1.0 API is still there, but still deprecated. https://bugzilla.gnome.org/show_bug.cgi?id=768977 --- clutter/clutter/clutter-shader-effect.c | 4 ---- clutter/clutter/deprecated/clutter-shader.c | 4 ---- cogl/cogl/cogl.h | 2 +- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/clutter/clutter/clutter-shader-effect.c b/clutter/clutter/clutter-shader-effect.c index c6ec49f1b..ee54485e3 100644 --- a/clutter/clutter/clutter-shader-effect.c +++ b/clutter/clutter/clutter-shader-effect.c @@ -115,10 +115,6 @@ #include "clutter-build-config.h" #endif -/* XXX: This file depends on the cogl_program_ api with has been - * removed for Cogl 2.0 so we undef COGL_ENABLE_EXPERIMENTAL_2_0_API - * for this file for now */ -#undef COGL_ENABLE_EXPERIMENTAL_2_0_API #include "cogl/cogl.h" #include "clutter-shader-effect.h" diff --git a/clutter/clutter/deprecated/clutter-shader.c b/clutter/clutter/deprecated/clutter-shader.c index 629595e5e..60f15c679 100644 --- a/clutter/clutter/deprecated/clutter-shader.c +++ b/clutter/clutter/deprecated/clutter-shader.c @@ -56,10 +56,6 @@ #include -/* This file depends on the cogl 1.x api which isn't exposed when - * COGL_ENABLE_EXPERIMENTAL_2_0_API is defined... - */ -#undef COGL_ENABLE_EXPERIMENTAL_2_0_API #include #include "clutter-shader.h" diff --git a/cogl/cogl/cogl.h b/cogl/cogl/cogl.h index 5d8c4e21a..885683753 100644 --- a/cogl/cogl/cogl.h +++ b/cogl/cogl/cogl.h @@ -82,7 +82,6 @@ #include #include #include -#include #endif /* It would be good to move these casts up into 1.x only api if we can @@ -92,6 +91,7 @@ #include #include +#include #ifdef COGL_ENABLE_MUTTER_API #include