mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-17 21:10:23 +01:00
observer: Fix typo and handle the condition of no script device
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
c8bfa8c088
commit
88a1b83177
1 changed files with 2 additions and 2 deletions
|
|
@ -1774,7 +1774,7 @@ replay_record (cairo_observation_t *log,
|
|||
cairo_surface_t *surface;
|
||||
cairo_int_status_t status;
|
||||
|
||||
if (log->record == NULL)
|
||||
if (log->record == NULL || script == NULL)
|
||||
return FALSE;
|
||||
|
||||
surface = cairo_script_surface_create (script,
|
||||
|
|
@ -1814,7 +1814,7 @@ _cairo_observation_print (cairo_output_stream_t *stream,
|
|||
cairo_device_t *script;
|
||||
cairo_time_t total;
|
||||
|
||||
#if CAIRO_HAS_SCRIPT_SURFAC
|
||||
#if CAIRO_HAS_SCRIPT_SURFACE
|
||||
script = _cairo_script_context_create_internal (stream);
|
||||
_cairo_script_context_attach_snapshots (script, FALSE);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue