Reduce our internal dependence on the Cogl 1.x api
Since Cogl has started restricting what cogl 1.x api is exposed when COGL_ENABLE_EXPERIMENTAL_2_0_API is defined and since we build all Clutter internals with COGL_ENABLE_EXPERIMENTAL_2_0_API defined this patch makes a first pass at reducing our internal use of the Cogl 1.x api. The most notable api that's no longer exposed to us internally is the cogl_material_ api so this switches all Clutter internals to use the cogl_pipeline_ api instead. This patch also makes quite a bit of progress removing internal uses of CoglHandle although there is still more to go.
This commit is contained in:
@ -113,10 +113,14 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "clutter-shader-effect.h"
|
||||
|
||||
/* 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"
|
||||
|
||||
#include "clutter-debug.h"
|
||||
#include "clutter-enum-types.h"
|
||||
#include "clutter-feature.h"
|
||||
@ -418,7 +422,7 @@ clutter_shader_effect_paint_target (ClutterOffscreenEffect *effect)
|
||||
|
||||
/* associate the program to the offscreen target material */
|
||||
material = clutter_offscreen_effect_get_target (effect);
|
||||
cogl_material_set_user_program (material, priv->program);
|
||||
cogl_pipeline_set_user_program (material, priv->program);
|
||||
|
||||
out:
|
||||
/* paint the offscreen buffer */
|
||||
|
Reference in New Issue
Block a user