From 76f4696e437d69a96ec8bddedb109f05dc1bb19e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 3 Dec 2009 17:13:44 +0000 Subject: [PATCH] Delay default stage creation The default stage creation should be delayed as much as possible, ideally at the end of the init() process. --- cogl/cogl-journal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogl/cogl-journal.c b/cogl/cogl-journal.c index 96fe3e5c7..0d8b09173 100644 --- a/cogl/cogl-journal.c +++ b/cogl/cogl-journal.c @@ -164,6 +164,9 @@ batch_and_call (CoglJournalEntry *entries, int batch_len = 1; CoglJournalEntry *batch_start = entries; + if (n_entries < 1) + return; + for (i = 1; i < n_entries; i++) { CoglJournalEntry *entry0 = &entries[i - 1];