conform: Do not use deprecated API

There is no more type-specific ref/unref pairs: it is all under
CoglHandle now.
This commit is contained in:
Emmanuele Bassi 2010-02-15 11:56:34 +00:00
parent d607400f01
commit c3354cb2c0
3 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@ test_blend (TestState *state,
y * QUAD_WIDTH, y * QUAD_WIDTH,
x * QUAD_WIDTH + QUAD_WIDTH, x * QUAD_WIDTH + QUAD_WIDTH,
y * QUAD_WIDTH + QUAD_WIDTH); y * QUAD_WIDTH + QUAD_WIDTH);
cogl_material_unref (material); cogl_handle_unref (material);
/* /*
* Now blend a rectangle over our well defined destination: * Now blend a rectangle over our well defined destination:
@ -120,7 +120,7 @@ test_blend (TestState *state,
y * QUAD_WIDTH, y * QUAD_WIDTH,
x * QUAD_WIDTH + QUAD_WIDTH, x * QUAD_WIDTH + QUAD_WIDTH,
y * QUAD_WIDTH + QUAD_WIDTH); y * QUAD_WIDTH + QUAD_WIDTH);
cogl_material_unref (material); cogl_handle_unref (material);
/* See what we got... */ /* See what we got... */
@ -247,8 +247,8 @@ test_tex_combine (TestState *state,
y * QUAD_WIDTH, y * QUAD_WIDTH,
x * QUAD_WIDTH + QUAD_WIDTH, x * QUAD_WIDTH + QUAD_WIDTH,
y * QUAD_WIDTH + QUAD_WIDTH); y * QUAD_WIDTH + QUAD_WIDTH);
cogl_material_unref (material);
cogl_handle_unref (material);
cogl_handle_unref (tex0); cogl_handle_unref (tex0);
cogl_handle_unref (tex1); cogl_handle_unref (tex1);

View File

@ -149,8 +149,8 @@ on_paint (ClutterActor *actor, TestState *state)
cogl_set_source (material); cogl_set_source (material);
cogl_rectangle_with_multitexture_coords (0, 0, QUAD_WIDTH, QUAD_WIDTH, cogl_rectangle_with_multitexture_coords (0, 0, QUAD_WIDTH, QUAD_WIDTH,
tex_coords, 8); tex_coords, 8);
cogl_material_unref (material);
cogl_handle_unref (material);
cogl_handle_unref (tex0); cogl_handle_unref (tex0);
cogl_handle_unref (tex1); cogl_handle_unref (tex1);

View File

@ -77,7 +77,7 @@ on_paint (ClutterActor *actor, TestState *state)
COGL_MATERIAL_FILTER_NEAREST); COGL_MATERIAL_FILTER_NEAREST);
cogl_rectangle (1, 0, 2, 1); cogl_rectangle (1, 0, 2, 1);
cogl_material_unref (material); cogl_handle_unref (material);
/* Read back the two pixels we rendered */ /* Read back the two pixels we rendered */
cogl_read_pixels (0, 0, 2, 1, cogl_read_pixels (0, 0, 2, 1,