diff --git a/cogl/cogl-framebuffer-private.h b/cogl/cogl-framebuffer-private.h index 856f90968..4c95f7340 100644 --- a/cogl/cogl-framebuffer-private.h +++ b/cogl/cogl-framebuffer-private.h @@ -31,6 +31,7 @@ #include "cogl-winsys-private.h" #include "cogl-attribute-private.h" #include "cogl-offscreen.h" +#include "cogl-gl-header.h" #ifdef COGL_HAS_XLIB_SUPPORT #include diff --git a/cogl/cogl-pipeline-layer-private.h b/cogl/cogl-pipeline-layer-private.h index b6724735e..84ccd9d6e 100644 --- a/cogl/cogl-pipeline-layer-private.h +++ b/cogl/cogl-pipeline-layer-private.h @@ -39,14 +39,6 @@ #include -/* This isn't defined in the GLES headers */ -#ifndef GL_CLAMP_TO_BORDER -#define GL_CLAMP_TO_BORDER 0x812d -#endif -#ifndef GL_MIRRORED_REPEAT -#define GL_MIRRORED_REPEAT 0x8370 -#endif - typedef struct _CoglPipelineLayer CoglPipelineLayer; #define COGL_PIPELINE_LAYER(OBJECT) ((CoglPipelineLayer *)OBJECT) diff --git a/cogl/cogl-sampler-cache-private.h b/cogl/cogl-sampler-cache-private.h index 4eb750390..0149751d3 100644 --- a/cogl/cogl-sampler-cache-private.h +++ b/cogl/cogl-sampler-cache-private.h @@ -28,6 +28,14 @@ #include "cogl-context.h" #include "cogl-gl-header.h" +/* These aren't defined in the GLES headers */ +#ifndef GL_CLAMP_TO_BORDER +#define GL_CLAMP_TO_BORDER 0x812d +#endif +#ifndef GL_MIRRORED_REPEAT +#define GL_MIRRORED_REPEAT 0x8370 +#endif + /* GL_ALWAYS is just used here as a value that is known not to clash * with any valid GL wrap modes. * diff --git a/cogl/cogl-sampler-cache.c b/cogl/cogl-sampler-cache.c index b7bb4da26..f91983c5d 100644 --- a/cogl/cogl-sampler-cache.c +++ b/cogl/cogl-sampler-cache.c @@ -31,6 +31,10 @@ #include "cogl-sampler-cache-private.h" #include "cogl-context-private.h" +#ifndef GL_TEXTURE_WRAP_R +#define GL_TEXTURE_WRAP_R 0x8072 +#endif + struct _CoglSamplerCache { CoglContext *context;