Add a warning message when no usable Cogl pipeline backend is found

If none of the pipeline backends can handle the state then it now
displays a warning so the developer has a chance to work out what's
going on.
This commit is contained in:
Neil Roberts 2010-11-24 17:37:55 +00:00
parent cda5ea771b
commit 8083167be9

View File

@ -1165,6 +1165,9 @@ _cogl_pipeline_flush_gl_state (CoglPipeline *pipeline,
break;
}
if (G_UNLIKELY (i >= G_N_ELEMENTS (_cogl_pipeline_backends)))
g_warning ("No usable pipeline backend was found!");
/* FIXME: This reference is actually resulting in lots of
* copy-on-write reparenting because one-shot pipelines end up
* living for longer than necessary and so any later modification of