From 8a5867799c5809854dfac9c2b7e704bcc6e9455b Mon Sep 17 00:00:00 2001
From: Robert Bragg <robert@linux.intel.com>
Date: Fri, 21 Jan 2011 18:43:35 +0000
Subject: [PATCH] cogl: call _cogl_texture_init for x11 tfp

When we added the texture->framebuffers member a _cogl_texture_init
funciton was added to initialize the list of framebuffers associated
with a texture to NULL. All the backends were updated except the
x11 tfp backend. This was causing crashes in test-pixmap.
---
 clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c b/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c
index 54697f8e7..58bef605c 100644
--- a/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c
+++ b/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c
@@ -533,7 +533,7 @@ cogl_texture_pixmap_x11_new (guint32 pixmap,
 
   _COGL_GET_CONTEXT (ctxt, COGL_INVALID_HANDLE);
 
-  tex->vtable = &cogl_texture_pixmap_x11_vtable;
+  _cogl_texture_init (tex, &cogl_texture_pixmap_x11_vtable);
 
   tex_pixmap->pixmap = pixmap;
   tex_pixmap->image = NULL;