mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-29 19:38:17 +02:00
cairo-perf - Check that the surface is created.
Exit(1) if we fail to create the target surface.
This commit is contained in:
parent
7131f4e6ae
commit
383e9d5368
1 changed files with 7 additions and 0 deletions
|
|
@ -345,6 +345,13 @@ main (int argc, char *argv[])
|
|||
perf.size, perf.size,
|
||||
CAIRO_BOILERPLATE_MODE_PERF,
|
||||
&target->closure);
|
||||
if (surface == NULL) {
|
||||
fprintf (stderr,
|
||||
"Error: Failed to create target surface: %s",
|
||||
target->name);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
cairo_perf_timer_set_synchronize (target->synchronize,
|
||||
target->closure);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue