Browse Source

nouveau: fix offset in nouveau_buffer_transfer_map

Before 369e46888904c6d379b8b477d9242cff1608e30e, the transfer was
initialized before the call to map and had the correct value already.
tags/gles3-fmt-v1
Christoph Bumiller 13 years ago
parent
commit
43e6c51aed
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gallium/drivers/nouveau/nouveau_buffer.c

+ 1
- 1
src/gallium/drivers/nouveau/nouveau_buffer.c View File

@@ -210,7 +210,7 @@ nouveau_buffer_transfer_map(struct pipe_context *pipe,
struct nouveau_bo *bo = buf->bo;
uint8_t *map;
int ret;
uint32_t offset = xfr->base.box.x;
uint32_t offset = box->x;
uint32_t flags = 0;

if (!xfr)

Loading…
Cancel
Save