Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-02-23 14:35:23 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-02-23 14:35:23 +0400
commit3dd449ae4fbb2eb6f9eb63e9f9de61def58abe16 (patch)
tree6c555b7c5fced7152d17dc9fd8a46652fea8c1bb /source/blender/gpu
parent303497152027fd68006e130c69943adcdff4aa08 (diff)
Bugfix: don't read from a write-only VBO when updating grid buffers.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index 48ab313c589..ff269e2050f 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -1428,10 +1428,10 @@ void GPU_update_grid_buffers(GPU_Buffers *buffers, DMGridData **grids,
for(j = 0; j < gridsize-1; ++j) {
for(k = 0; k < gridsize-1; ++k) {
normal_quad_v3(vert_data[(j+1)*gridsize + (k+1)].no,
- vert_data[(j+1)*gridsize + k].co,
- vert_data[(j+1)*gridsize + k+1].co,
- vert_data[j*gridsize + k+1].co,
- vert_data[j*gridsize + k].co);
+ grid[(j+1)*gridsize + k].co,
+ grid[(j+1)*gridsize + k+1].co,
+ grid[j*gridsize + k+1].co,
+ grid[j*gridsize + k].co);
}
}
}