[Mesa-dev] [PATCH 4/5] mesa/meta: Add a partial implementation of CopyImageSubData

Neil Roberts neil at linux.intel.com
Fri Aug 1 06:48:41 PDT 2014


Jason Ekstrand <jason at jlekstrand.net> writes:

> +bool
> +_mesa_meta_CopyImageSubData_uncompressed(struct gl_context *ctx,
> +                                         struct gl_texture_image *src_tex_image,
> +                                         int src_x, int src_y, int src_z,
> +                                         struct gl_texture_image *dst_tex_image,
> +                                         int dst_x, int dst_y, int dst_z,
> +                                         int src_width, int src_height)
> +{
> +   GLuint src_view_texture = 0;
> +   struct gl_texture_image *src_view_tex_image;
> +   GLuint fbos[2];

...

> +   _mesa_GenFramebuffers(2, fbos);

...

> +cleanup:
> +   _mesa_DeleteTextures(1, &src_view_texture);
> +
> +   return success;
> +}

It looks like the two FBOs are leaked. Maybe they should be added to the
cleanup step?

Regards,
- Neil


More information about the mesa-dev mailing list