cell: add pipe_texture_reference() call in cell_get_tex_surface()

This commit is contained in:
Brian Paul 2008-09-03 13:31:14 -06:00
parent b035c85b3e
commit 439dca4992

View file

@ -187,6 +187,10 @@ cell_get_tex_surface(struct pipe_screen *screen,
/* XXX may need to override usage flags (see sp_texture.c) */
pipe_texture_reference(&ps->texture, pt);
ps->face = face;
ps->level = level;
ps->zslice = zslice;
if (pt->target == PIPE_TEXTURE_CUBE || pt->target == PIPE_TEXTURE_3D) {
ps->offset += ((pt->target == PIPE_TEXTURE_CUBE) ? face : zslice) *