summaryrefslogtreecommitdiff
path: root/tests/conform/test-pixel-buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conform/test-pixel-buffer.c')
-rw-r--r--tests/conform/test-pixel-buffer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/conform/test-pixel-buffer.c b/tests/conform/test-pixel-buffer.c
index 96b747d0..a36430f2 100644
--- a/tests/conform/test-pixel-buffer.c
+++ b/tests/conform/test-pixel-buffer.c
@@ -39,7 +39,7 @@ create_bitmap (void)
BITMAP_SIZE,
BITMAP_SIZE,
COGL_PIXEL_FORMAT_RGBA_8888);
- buffer = COGL_BUFFER (cogl_bitmap_get_buffer (bitmap));
+ buffer = cogl_bitmap_get_buffer (bitmap);
g_assert (cogl_is_pixel_buffer (buffer));
g_assert (cogl_is_buffer (buffer));
@@ -56,7 +56,7 @@ static CoglBitmap *
create_and_fill_bitmap (void)
{
CoglBitmap *bitmap = create_bitmap ();
- CoglBuffer *buffer = COGL_BUFFER (cogl_bitmap_get_buffer (bitmap));
+ CoglBuffer *buffer = cogl_bitmap_get_buffer (bitmap);
uint8_t *map;
unsigned int stride;
@@ -70,7 +70,7 @@ create_and_fill_bitmap (void)
generate_bitmap_data (map, stride);
- cogl_buffer_unmap (COGL_BUFFER (buffer));
+ cogl_buffer_unmap (buffer);
return bitmap;
}
@@ -86,7 +86,7 @@ create_texture_from_bitmap (CoglBitmap *bitmap)
g_assert (texture != NULL);
- return COGL_TEXTURE (texture);
+ return texture;
}
static CoglPipeline *
@@ -169,7 +169,7 @@ void
test_pixel_buffer_set_data (void)
{
CoglBitmap *bitmap = create_bitmap ();
- CoglBuffer *buffer = COGL_BUFFER (cogl_bitmap_get_buffer (bitmap));
+ CoglBuffer *buffer = cogl_bitmap_get_buffer (bitmap);
CoglPipeline *pipeline;
CoglTexture *texture;
uint8_t *data;
@@ -230,7 +230,7 @@ create_white_texture (void)
g_free (data);
- return COGL_TEXTURE (texture);
+ return texture;
}
void