static void _cogl_texture_3d_free (CoglTexture3D *tex_3d) { if (tex_3d->gl_texture) _cogl_delete_gl_texture (tex_3d->gl_texture); /* Chain up */ _cogl_texture_free (COGL_TEXTURE (tex_3d)); }
static void _cogl_texture_rectangle_free (CoglTextureRectangle *tex_rect) { if (!tex_rect->is_foreign && tex_rect->gl_texture) _cogl_delete_gl_texture (tex_rect->gl_texture); /* Chain up */ _cogl_texture_free (COGL_TEXTURE (tex_rect)); }
void _cogl_texture_2d_gl_free (CoglTexture2D *tex_2d) { if (!tex_2d->is_foreign && tex_2d->gl_texture) _cogl_delete_gl_texture (tex_2d->gl_texture); #if defined (COGL_HAS_EGL_SUPPORT) g_clear_pointer (&tex_2d->egl_image_external.user_data, tex_2d->egl_image_external.destroy); #endif }