gallium: Make sure to release texture surfaces (at the right time).

This commit is contained in:
Michel Dänzer
2008-05-06 12:24:04 +01:00
parent 650c57f193
commit d0279fc4b3
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -1038,12 +1038,13 @@ st_CopyPixels(GLcontext *ctx, GLint srcx, GLint srcy,
}
}
pipe_surface_reference(&psTex, NULL);
/* draw textured quad */
draw_textured_quad(ctx, dstx, dsty, ctx->Current.RasterPos[2],
width, height, ctx->Pixel.ZoomX, ctx->Pixel.ZoomY,
pt, stvp, stfp, color, GL_TRUE);
pipe_surface_reference(&psTex, NULL);
pipe_texture_reference(&pt, NULL);
}
+2
View File
@@ -1095,6 +1095,8 @@ fallback_copy_texsubimage(GLcontext *ctx,
pipe_put_tile_rgba(pipe, dest_surf, destX, destY, width, 1, data);
}
}
screen->tex_surface_release(screen, &dest_surf);
}