recorder: Stop using deprecated cogl_read_pixels

This commit is contained in:
Adel Gadllah 2015-01-11 12:49:44 +01:00
parent 60b3d43ea7
commit e150a9cff2

View File

@ -438,11 +438,11 @@ recorder_record_frame (ShellRecorder *recorder)
size = recorder->area.width * recorder->area.height * 4; size = recorder->area.width * recorder->area.height * 4;
data = g_malloc (recorder->area.width * 4 * recorder->area.height); data = g_malloc (recorder->area.width * 4 * recorder->area.height);
cogl_read_pixels (recorder->area.x, cogl_framebuffer_read_pixels (cogl_get_draw_framebuffer (),
recorder->area.x,
recorder->area.y, recorder->area.y,
recorder->area.width, recorder->area.width,
recorder->area.height, recorder->area.height,
COGL_READ_PIXELS_COLOR_BUFFER,
CLUTTER_CAIRO_FORMAT_ARGB32, CLUTTER_CAIRO_FORMAT_ARGB32,
data); data);