From 82acc3b14c2e85b4367bcbbb50f6a7e946050b19 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 7 Jan 2011 17:06:11 +0100 Subject: [PATCH] r600g: Also set const_offset if the buffer is not a user buffer in r600_upload_const_buffer(). --- src/gallium/drivers/r600/r600_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index 1b0000ba462..469c8195fe9 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -270,7 +270,9 @@ int r600_upload_const_buffer(struct r600_pipe_context *rctx, struct pipe_resourc return ret; rbuffer->uploaded = TRUE; *const_offset = upload_offset; + return 0; } + *const_offset = 0; return 0; } -- 2.30.2