mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
build: Fix GLES builds since the material backend split
The commit to split the fragment processing backends out from
cogl-material.c (3e1323a636
) broke the GLES 1 and 2 builds the
fix was to guard the code in each backend according to the
COGL_MATERIAL_BACKEND_XYZ defines which are setup in
cogl-material-private.h.
This commit is contained in:
parent
be6335c870
commit
3428633cb3
@ -29,12 +29,15 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "cogl-material-private.h"
|
||||||
|
|
||||||
|
#ifdef COGL_MATERIAL_BACKEND_ARBFP
|
||||||
|
|
||||||
#include "cogl.h"
|
#include "cogl.h"
|
||||||
#include "cogl-internal.h"
|
#include "cogl-internal.h"
|
||||||
#include "cogl-context.h"
|
#include "cogl-context.h"
|
||||||
#include "cogl-handle.h"
|
#include "cogl-handle.h"
|
||||||
|
|
||||||
#include "cogl-material-private.h"
|
|
||||||
#include "cogl-texture-private.h"
|
#include "cogl-texture-private.h"
|
||||||
#include "cogl-blend-string.h"
|
#include "cogl-blend-string.h"
|
||||||
#include "cogl-journal-private.h"
|
#include "cogl-journal-private.h"
|
||||||
@ -1027,3 +1030,5 @@ const CoglMaterialBackend _cogl_material_arbfp_backend =
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /* COGL_MATERIAL_BACKEND_ARBFP */
|
||||||
|
|
||||||
|
@ -29,12 +29,15 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "cogl-material-private.h"
|
||||||
|
|
||||||
|
#ifdef COGL_MATERIAL_BACKEND_FIXED
|
||||||
|
|
||||||
#include "cogl.h"
|
#include "cogl.h"
|
||||||
#include "cogl-internal.h"
|
#include "cogl-internal.h"
|
||||||
#include "cogl-context.h"
|
#include "cogl-context.h"
|
||||||
#include "cogl-handle.h"
|
#include "cogl-handle.h"
|
||||||
|
|
||||||
#include "cogl-material-private.h"
|
|
||||||
#include "cogl-texture-private.h"
|
#include "cogl-texture-private.h"
|
||||||
#include "cogl-blend-string.h"
|
#include "cogl-blend-string.h"
|
||||||
#include "cogl-profile.h"
|
#include "cogl-profile.h"
|
||||||
@ -199,3 +202,5 @@ const CoglMaterialBackend _cogl_material_fixed_backend =
|
|||||||
NULL /* free_priv */
|
NULL /* free_priv */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /* COGL_MATERIAL_BACKEND_FIXED */
|
||||||
|
|
||||||
|
@ -29,12 +29,15 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "cogl-material-private.h"
|
||||||
|
|
||||||
|
#ifdef COGL_MATERIAL_BACKEND_GLSL
|
||||||
|
|
||||||
#include "cogl.h"
|
#include "cogl.h"
|
||||||
#include "cogl-internal.h"
|
#include "cogl-internal.h"
|
||||||
#include "cogl-context.h"
|
#include "cogl-context.h"
|
||||||
#include "cogl-handle.h"
|
#include "cogl-handle.h"
|
||||||
|
|
||||||
#include "cogl-material-private.h"
|
|
||||||
#ifndef HAVE_COGL_GLES
|
#ifndef HAVE_COGL_GLES
|
||||||
#include "cogl-program.h"
|
#include "cogl-program.h"
|
||||||
#endif
|
#endif
|
||||||
@ -121,3 +124,5 @@ const CoglMaterialBackend _cogl_material_glsl_backend =
|
|||||||
NULL, /* free_priv */
|
NULL, /* free_priv */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /* COGL_MATERIAL_BACKEND_GLSL */
|
||||||
|
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
#ifndef __COGL_MATERIAL_PRIVATE_H
|
#ifndef __COGL_MATERIAL_PRIVATE_H
|
||||||
#define __COGL_MATERIAL_PRIVATE_H
|
#define __COGL_MATERIAL_PRIVATE_H
|
||||||
|
|
||||||
|
#include "cogl.h"
|
||||||
|
|
||||||
#include "cogl-material.h"
|
#include "cogl-material.h"
|
||||||
#include "cogl-matrix.h"
|
#include "cogl-matrix.h"
|
||||||
#include "cogl-matrix-stack.h"
|
#include "cogl-matrix-stack.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user