i915: Fixed initialization of surface
This commit is contained in:
committed by
Jakob Bornecrantz
parent
9b50043ea9
commit
f4364cd1a6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user