psb: Fill all texture fields when creating texture blanket.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 4 Jul 2008 15:56:36 +0000 (00:56 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 4 Jul 2008 15:56:36 +0000 (00:56 +0900)
src/gallium/drivers/i915simple/i915_texture.c

index 2815e61345cdcd24ac4eea485f3af012f193db7c..5d6769924c326e819a878bd99de58b7e10beee92 100644 (file)
@@ -710,6 +710,8 @@ i915_texture_blanket(struct pipe_screen * screen,
       return NULL;
 
    tex->base = *base;
+   tex->base.refcount = 1;
+   tex->base.screen = screen;
 
    tex->stride = stride[0];