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:
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r--source/blender/draw/intern/draw_cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index 4ec4cc5bda8..06ec0f746e0 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -2299,6 +2299,7 @@ Batch *DRW_cache_particles_get_prim(int type)
float co[3] = {-1.0f, 0.0f, 0.0f};
int axis = -1;
VertexBuffer_set_attrib(vbo, pos_id, 0, co);
+ VertexBuffer_set_attrib(vbo, axis_id, 0, &axis);
co[0] = 1.0f;
VertexBuffer_set_attrib(vbo, pos_id, 1, co);
@@ -2308,6 +2309,7 @@ Batch *DRW_cache_particles_get_prim(int type)
co[0] = 0.0f;
co[1] = -1.0f;
VertexBuffer_set_attrib(vbo, pos_id, 2, co);
+ VertexBuffer_set_attrib(vbo, axis_id, 2, &axis);
co[1] = 1.0f;
VertexBuffer_set_attrib(vbo, pos_id, 3, co);
@@ -2317,6 +2319,7 @@ Batch *DRW_cache_particles_get_prim(int type)
co[1] = 0.0f;
co[2] = -1.0f;
VertexBuffer_set_attrib(vbo, pos_id, 4, co);
+ VertexBuffer_set_attrib(vbo, axis_id, 4, &axis);
co[2] = 1.0f;
VertexBuffer_set_attrib(vbo, pos_id, 5, co);
@@ -2343,6 +2346,7 @@ Batch *DRW_cache_particles_get_prim(int type)
float co[3] = {0.0f, 0.0f, 0.0f};
int axis = 0;
VertexBuffer_set_attrib(vbo, pos_id, 0, co);
+ VertexBuffer_set_attrib(vbo, axis_id, 0, &axis);
co[0] = 1.0f;
VertexBuffer_set_attrib(vbo, pos_id, 1, co);
@@ -2352,6 +2356,7 @@ Batch *DRW_cache_particles_get_prim(int type)
co[0] = 0.0f;
axis = 1;
VertexBuffer_set_attrib(vbo, pos_id, 2, co);
+ VertexBuffer_set_attrib(vbo, axis_id, 2, &axis);
co[1] = 1.0f;
VertexBuffer_set_attrib(vbo, pos_id, 3, co);
@@ -2361,6 +2366,7 @@ Batch *DRW_cache_particles_get_prim(int type)
co[1] = 0.0f;
axis = 2;
VertexBuffer_set_attrib(vbo, pos_id, 4, co);
+ VertexBuffer_set_attrib(vbo, axis_id, 4, &axis);
co[2] = 1.0f;
VertexBuffer_set_attrib(vbo, pos_id, 5, co);