summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2012-02-18 15:22:15 +0000
committerRobert Bragg <robert@linux.intel.com>2012-02-21 12:38:10 +0000
commit13c36fff0d55fb20c3f71d7a1e95208d5b1d61f8 (patch)
treeebd132ad64542b010f7dd192c59fa7da1b2c2485 /tests
parent0a2a3d7c80049450373ac24a219c556c55a04da7 (diff)
downloadcogl-13c36fff0d55fb20c3f71d7a1e95208d5b1d61f8.tar.gz
offscreen: Replace use of CoglHandle with CoglOffscreen
This updates cogl_offscreen_new_to_texture to return a CoglOffscreen pointer instead of a CoglHandle. Reviewed-by: Neil Roberts <neil@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/conform/test-backface-culling.c2
-rw-r--r--tests/conform/test-color-mask.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/conform/test-backface-culling.c b/tests/conform/test-backface-culling.c
index fc7caa45..dacc305d 100644
--- a/tests/conform/test-backface-culling.c
+++ b/tests/conform/test-backface-culling.c
@@ -296,7 +296,7 @@ test_cogl_backface_culling (TestUtilsGTestFixture *fixture,
tex = cogl_texture_new_with_size (state.width, state.height,
COGL_TEXTURE_NO_SLICING,
COGL_PIXEL_FORMAT_ANY); /* internal fmt */
- state.offscreen = cogl_offscreen_new_to_texture (tex);
+ state.offscreen = COGL_FRAMEBUFFER (cogl_offscreen_new_to_texture (tex));
state.offscreen_tex = tex;
paint (&state);
diff --git a/tests/conform/test-color-mask.c b/tests/conform/test-color-mask.c
index 75c8a05e..deb9cdd9 100644
--- a/tests/conform/test-color-mask.c
+++ b/tests/conform/test-color-mask.c
@@ -87,7 +87,8 @@ test_cogl_color_mask (TestUtilsGTestFixture *fixture,
COGL_PIXEL_FORMAT_RGB_888);
- state.fbo[i] = cogl_offscreen_new_to_texture (state.tex[i]);
+ state.fbo[i] = COGL_FRAMEBUFFER (
+ cogl_offscreen_new_to_texture (state.tex[i]));
/* Clear the texture color bits */
cogl_push_framebuffer (state.fbo[i]);