diff options
author | Ton Roosendaal <ton@blender.org> | 2009-07-09 19:40:04 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-07-09 19:40:04 +0400 |
commit | 5e659c0b0895e07351bd2b2425deea342141e515 (patch) | |
tree | 7e6bd849591c0eb75fdefe37c061519806edf309 /source/blender/render | |
parent | 77c61f545fb3248ae4e06afafa816764222405c4 (diff) |
2.5
Monthly cleaning round to make it compile warning free.
Mostly it was const stuff (strings, Context), but also
a couple useful fixes, like wrong use of temp pointers.
Only Mathutils callback struct I left alone... design issue.
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/zbuf.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/source/blender/render/intern/source/zbuf.c b/source/blender/render/intern/source/zbuf.c index 21c3977fc0b..0d8f1be8c85 100644 --- a/source/blender/render/intern/source/zbuf.c +++ b/source/blender/render/intern/source/zbuf.c @@ -2269,36 +2269,6 @@ void zbuffer_solid(RenderPart *pa, RenderLayer *rl, void(*fillfunc)(RenderPart*, } } -typedef struct { - float *vert; - float hoco[4]; - int clip; -} VertBucket; - -/* warning, not threaded! */ -static int hashlist_projectvert(float *v1, float winmat[][4], float *hoco) -{ - static VertBucket bucket[256], *buck; - - /* init static bucket */ - if(v1==NULL) { - memset(bucket, 0, 256*sizeof(VertBucket)); - return 0; - } - - buck= &bucket[ (((intptr_t)v1)/16) & 255 ]; - if(buck->vert==v1) { - QUATCOPY(hoco, buck->hoco); - return buck->clip; - } - - projectvert(v1, winmat, hoco); - buck->clip = testclip(hoco); - buck->vert= v1; - QUATCOPY(buck->hoco, hoco); - return buck->clip; -} - void zbuffer_shadow(Render *re, float winmat[][4], LampRen *lar, int *rectz, int size, float jitx, float jity) { ZbufProjectCache cache[ZBUF_PROJECT_CACHE_SIZE]; |