[cogl] renderer: don't re-connect for display check
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] renderer: don't re-connect for display check
- Date: Wed, 7 Dec 2011 15:55:15 +0000 (UTC)
commit 09520a7d61a86e59aec7ea901724b089d4777ae1
Author: Robert Bragg <robert linux intel com>
Date: Mon Dec 5 19:11:52 2011 +0000
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>
cogl/cogl-renderer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c
index a691bda..2e27209 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]