Commit 1de74095 authored by Jasper St. Pierre's avatar Jasper St. Pierre
Browse files

wayland: Don't leak the existing texture if we already have one

We were missing a check in ensure_buffer_texture that checked if we
already had a CoglTexture bound for the buffer.
parent 21f123c6
......@@ -151,6 +151,9 @@ ensure_buffer_texture (MetaWaylandBuffer *buffer)
CoglError *catch_error = NULL;
CoglTexture *texture;
if (buffer->texture)
texture = COGL_TEXTURE (cogl_wayland_texture_2d_new_from_buffer (ctx,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment