summaryrefslogtreecommitdiff
path: root/examples/cogl-crate.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cogl-crate.c')
-rw-r--r--examples/cogl-crate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/cogl-crate.c b/examples/cogl-crate.c
index 9c22be7b..67613fc6 100644
--- a/examples/cogl-crate.c
+++ b/examples/cogl-crate.c
@@ -161,7 +161,7 @@ main (int argc, char **argv)
}
onscreen = cogl_onscreen_new (ctx, 640, 480);
- fb = COGL_FRAMEBUFFER (onscreen);
+ fb = onscreen;
data.fb = fb;
data.framebuffer_width = cogl_framebuffer_get_width (fb);
data.framebuffer_height = cogl_framebuffer_get_height (fb);
@@ -222,11 +222,11 @@ main (int argc, char **argv)
/* Load a jpeg crate texture from a file */
printf ("crate.jpg (CC by-nc-nd http://bit.ly/9kP45T) ShadowRunner27 http://bit.ly/m1YXLh\n");
- data.texture = COGL_TEXTURE (
+ data.texture =
cogl_texture_2d_new_from_file (ctx,
COGL_EXAMPLES_DATA "crate.jpg",
COGL_PIXEL_FORMAT_ANY,
- &error));
+ &error);
if (!data.texture)
g_error ("Failed to load texture: %s", error->message);