summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2013-07-03 18:26:21 +0100
committerNeil Roberts <neil@linux.intel.com>2013-07-09 13:39:26 +0100
commit6bc12947a51224b70525893143bfe421723ce255 (patch)
tree1f79405a2400a0fcd690d8c343a6ba2770b1124d
parent9a8c6536088368060a85f74d082c3dd8487b877c (diff)
downloadcogl-6bc12947a51224b70525893143bfe421723ce255.tar.gz
Allow cogl_wayland_onscreen_get_surface to be used non-foreignly
cogl_wayland_onscreen_get_surface previously only worked if the onscreen had a foreign surface on it. However there is no reason why this shouldn't also work fine for manipulating the surface that Cogl created as well. We may want to consider adding a separate getter for the foreign surface that can be used before the framebuffer is allocated. Reviewed-by: Robert Bragg <robert@linux.intel.com>
-rw-r--r--cogl/winsys/cogl-winsys-egl-wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cogl/winsys/cogl-winsys-egl-wayland.c b/cogl/winsys/cogl-winsys-egl-wayland.c
index 461ed18e..0727bbc5 100644
--- a/cogl/winsys/cogl-winsys-egl-wayland.c
+++ b/cogl/winsys/cogl-winsys-egl-wayland.c
@@ -636,7 +636,7 @@ cogl_wayland_onscreen_get_surface (CoglOnscreen *onscreen)
CoglFramebuffer *fb;
fb = COGL_FRAMEBUFFER (onscreen);
- if (fb->allocated && !onscreen->foreign_surface)
+ if (fb->allocated)
{
CoglOnscreenEGL *egl_onscreen = onscreen->winsys;
CoglOnscreenWayland *wayland_onscreen = egl_onscreen->platform;