summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@tungstengraphics.com>2008-05-30 18:46:40 +0200
committerJakob Bornecrantz <jakob@aurora.(none)>2008-06-02 12:59:59 +0200
commitf4364cd1a6f9e825ea183c1fa6d1050b7e113695 (patch)
tree9081059f4704517bbaa656447b32f928affdc7ee /src/gallium
parent9b50043ea9e20c15a1be6735e533f5cc25a253ca (diff)
i915: Fixed initialization of surface
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/i915simple/i915_texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915simple/i915_texture.c b/src/gallium/drivers/i915simple/i915_texture.c
index f0d00280c2..16354dce50 100644
--- a/src/gallium/drivers/i915simple/i915_texture.c
+++ b/src/gallium/drivers/i915simple/i915_texture.c
@@ -624,8 +624,8 @@ i915_get_tex_surface(struct pipe_screen *screen,
ps = CALLOC_STRUCT(pipe_surface);//ws->surface_alloc(ws);
if (ps) {
- assert(ps->refcount);
- assert(ps->winsys);
+ ps->refcount = 1;
+ ps->winsys = ws;
pipe_texture_reference(&ps->texture, pt);
pipe_buffer_reference(ws, &ps->buffer, tex->buffer);
ps->format = pt->format;