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

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)
return;
texture = COGL_TEXTURE (cogl_wayland_texture_2d_new_from_buffer (ctx,
buffer->resource,
&catch_error));
......
Markdown is supported
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