diff --git a/cogl/cogl/deprecated/cogl-material-compat.c b/cogl/cogl/deprecated/cogl-material-compat.c index ac59a3af7..8c94016bb 100644 --- a/cogl/cogl/deprecated/cogl-material-compat.c +++ b/cogl/cogl/deprecated/cogl-material-compat.c @@ -95,12 +95,3 @@ cogl_material_set_user_program (CoglMaterial *material, { cogl_pipeline_set_user_program (COGL_PIPELINE (material), program); } - -void -cogl_material_set_layer (CoglMaterial *material, - int layer_index, - CoglHandle texture) -{ - cogl_pipeline_set_layer_texture (COGL_PIPELINE (material), - layer_index, texture); -} diff --git a/cogl/cogl/deprecated/cogl-material-compat.h b/cogl/cogl/deprecated/cogl-material-compat.h index cfe483b0b..6ce354877 100644 --- a/cogl/cogl/deprecated/cogl-material-compat.h +++ b/cogl/cogl/deprecated/cogl-material-compat.h @@ -393,32 +393,6 @@ COGL_EXPORT void cogl_material_set_user_program (CoglMaterial *material, CoglHandle program); -/** - * cogl_material_set_layer: - * @material: A #CoglMaterial object - * @layer_index: the index of the layer - * @texture: a #CoglHandle for the layer object - * - * In addition to the standard OpenGL lighting model a Cogl material may have - * one or more layers comprised of textures that can be blended together in - * order, with a number of different texture combine modes. This function - * defines a new texture layer. - * - * The index values of multiple layers do not have to be consecutive; it is - * only their relative order that is important. - * - * In the future, we may define other types of material layers, such - * as purely GLSL based layers. - * - * Since: 1.0 - * Deprecated: 1.16: Use cogl_pipeline_set_layer() instead - */ -COGL_DEPRECATED_FOR (cogl_pipeline_set_layer) -COGL_EXPORT void -cogl_material_set_layer (CoglMaterial *material, - int layer_index, - CoglHandle texture); - G_END_DECLS #endif /* __COGL_MATERIAL_H__ */