From 09520a7d61a86e59aec7ea901724b089d4777ae1 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 5 Dec 2011 19:11:52 +0000 Subject: [PATCH] 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 --- cogl/cogl-renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c index a691bdaff..2e2720921 100644 --- a/cogl/cogl-renderer.c +++ b/cogl/cogl-renderer.c @@ -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);