recorder: Don't compute the buffer size twice
This commit is contained in:
parent
d183f13456
commit
985e909876
@ -437,7 +437,7 @@ recorder_record_frame (ShellRecorder *recorder)
|
||||
|
||||
size = recorder->area.width * recorder->area.height * 4;
|
||||
|
||||
data = g_malloc (recorder->area.width * 4 * recorder->area.height);
|
||||
data = g_malloc (size);
|
||||
cogl_framebuffer_read_pixels (cogl_get_draw_framebuffer (),
|
||||
recorder->area.x,
|
||||
recorder->area.y,
|
||||
|
Loading…
Reference in New Issue
Block a user