[cogl/wip/wayland-compositor: 4/4] renderer: don't re-connect for display check
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/wayland-compositor: 4/4] renderer: don't re-connect for display check
- Date: Wed, 7 Dec 2011 15:14:09 +0000 (UTC)
commit 29a864f4b6f2bef7c194b24058e3f9cfe23f8b01
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.
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]