mirror of
https://github.com/brl/mutter.git
synced 2025-03-06 13:18:15 +00:00
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> (cherry picked from commit 6bc12947a51224b70525893143bfe421723ce255)
This commit is contained in:
parent
86cd26b67c
commit
3060d44365
@ -637,7 +637,7 @@ cogl_wayland_onscreen_get_surface (CoglOnscreen *onscreen)
|
|||||||
CoglFramebuffer *fb;
|
CoglFramebuffer *fb;
|
||||||
|
|
||||||
fb = COGL_FRAMEBUFFER (onscreen);
|
fb = COGL_FRAMEBUFFER (onscreen);
|
||||||
if (fb->allocated && !onscreen->foreign_surface)
|
if (fb->allocated)
|
||||||
{
|
{
|
||||||
CoglOnscreenEGL *egl_onscreen = onscreen->winsys;
|
CoglOnscreenEGL *egl_onscreen = onscreen->winsys;
|
||||||
CoglOnscreenWayland *wayland_onscreen = egl_onscreen->platform;
|
CoglOnscreenWayland *wayland_onscreen = egl_onscreen->platform;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user