r600g: fix a warning that a variable may be uninitialized

This commit is contained in:
Marek Olšák
2011-12-25 09:37:06 +01:00
parent 1b9577b833
commit 2175634e73
+2
View File
@@ -316,6 +316,8 @@ static void r600_resource_copy_region(struct pipe_context *ctx,
const struct pipe_box *psbox;
boolean restore_orig[2];
memset(orig_info, 0, sizeof(orig_info));
/* Fallback for buffers. */
if (dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER) {
util_resource_copy_region(ctx, dst, dst_level, dstx, dsty, dstz,