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:
authorAntony Riakiotakis <kalast@gmail.com>2015-07-15 00:48:38 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-07-15 00:49:03 +0300
commitdfd383ca00f412118318c92ae249bb5db4c36425 (patch)
tree967e31c833f68b032f0cd66296c243ffb4b4f59c /source/blender/gpu
parent9cc1953210486a240f77b7ceafbcd664d1994b57 (diff)
Fix overdrawing and errors with textured and mapped drawing
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index a925d44ecf8..4e2af56e1e5 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -1634,13 +1634,13 @@ void GPU_begin_object_materials(View3D *v3d, RegionView3D *rv3d, Scene *scene, O
GPU_disable_material();
}
-int GPU_get_particle_info(GPUParticleInfo *pi)
+static int GPU_get_particle_info(GPUParticleInfo *pi)
{
ParticleData *p;
DupliObject *dob = GMS.dob;
int ind;
- if(dob->particle_system) {
- if(dob->persistent_id[0] < dob->particle_system->totpart)
+ if (dob->particle_system) {
+ if (dob->persistent_id[0] < dob->particle_system->totpart)
ind = dob->persistent_id[0];
else {
ind = dob->particle_system->child[dob->persistent_id[0] - dob->particle_system->totpart].parent;