mirror of
https://github.com/brl/mutter.git
synced 2025-03-03 03:48:11 +00:00
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:
parent
d607400f01
commit
c3354cb2c0
@ -94,7 +94,7 @@ test_blend (TestState *state,
|
||||
y * QUAD_WIDTH,
|
||||
x * 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:
|
||||
@ -120,7 +120,7 @@ test_blend (TestState *state,
|
||||
y * QUAD_WIDTH,
|
||||
x * QUAD_WIDTH + QUAD_WIDTH,
|
||||
y * QUAD_WIDTH + QUAD_WIDTH);
|
||||
cogl_material_unref (material);
|
||||
cogl_handle_unref (material);
|
||||
|
||||
/* See what we got... */
|
||||
|
||||
@ -247,8 +247,8 @@ test_tex_combine (TestState *state,
|
||||
y * QUAD_WIDTH,
|
||||
x * QUAD_WIDTH + QUAD_WIDTH,
|
||||
y * QUAD_WIDTH + QUAD_WIDTH);
|
||||
cogl_material_unref (material);
|
||||
|
||||
cogl_handle_unref (material);
|
||||
cogl_handle_unref (tex0);
|
||||
cogl_handle_unref (tex1);
|
||||
|
||||
|
@ -149,8 +149,8 @@ on_paint (ClutterActor *actor, TestState *state)
|
||||
cogl_set_source (material);
|
||||
cogl_rectangle_with_multitexture_coords (0, 0, QUAD_WIDTH, QUAD_WIDTH,
|
||||
tex_coords, 8);
|
||||
cogl_material_unref (material);
|
||||
|
||||
cogl_handle_unref (material);
|
||||
cogl_handle_unref (tex0);
|
||||
cogl_handle_unref (tex1);
|
||||
|
||||
|
@ -77,7 +77,7 @@ on_paint (ClutterActor *actor, TestState *state)
|
||||
COGL_MATERIAL_FILTER_NEAREST);
|
||||
cogl_rectangle (1, 0, 2, 1);
|
||||
|
||||
cogl_material_unref (material);
|
||||
cogl_handle_unref (material);
|
||||
|
||||
/* Read back the two pixels we rendered */
|
||||
cogl_read_pixels (0, 0, 2, 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user