renderer: don't re-connect for display check
This ensure that cogl_renderer_check_onscreen_template() doesn't call winsys->renderer_connect() if the renderer has already been connected as that can fail with some backends. Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
917a7ebe80
commit
09520a7d61
@ -165,7 +165,7 @@ cogl_renderer_check_onscreen_template (CoglRenderer *renderer,
|
||||
CoglDisplay *display;
|
||||
const CoglWinsysVtable *winsys = _cogl_renderer_get_winsys (renderer);
|
||||
|
||||
if (!winsys->renderer_connect (renderer, error))
|
||||
if (!cogl_renderer_connect (renderer, error))
|
||||
return FALSE;
|
||||
|
||||
display = cogl_display_new (renderer, onscreen_template);
|
||||
|
Loading…
Reference in New Issue
Block a user