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:
parent
289e880efd
commit
aa498072e0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user