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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-11-23 20:38:05 +0300
committerTon Roosendaal <ton@blender.org>2005-11-23 20:38:05 +0300
commit53d426c49a2226725d61fcf79355216e3938f538 (patch)
tree5482ee724e920f0742f7ede44d3e9ee36c392dd6 /source
parente506c9ea52d065bf646c560f94e03c6667aa86cc (diff)
I hoped we could skip a floor() in the new zbuffer code, but no...
rounding negative values goes to zero, caused left pixel to not render in images.
Diffstat (limited to 'source')
-rw-r--r--source/blender/render/intern/source/zbuf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/render/intern/source/zbuf.c b/source/blender/render/intern/source/zbuf.c
index 4c46bf2826a..298a86b6f76 100644
--- a/source/blender/render/intern/source/zbuf.c
+++ b/source/blender/render/intern/source/zbuf.c
@@ -654,8 +654,8 @@ static void zbufinvulAc4(ZSpan *zspan, int zvlnr, float *v1, float *v2, float *v
for(y=my2; y>=my0; y--, span1--, span2--) {
- sn1= (int)*span1;
- sn2= (int)*span2;
+ sn1= floor(*span1);
+ sn2= floor(*span2);
sn1++;
if(sn2>=rectx) sn2= rectx-1;
@@ -1571,8 +1571,8 @@ static void zbufinvulGL4(ZSpan *zspan, int zvlnr, float *v1, float *v2, float *v
for(y=my2; y>=my0; y--, span1--, span2--) {
- sn1= (int)*span1;
- sn2= (int)*span2;
+ sn1= floor(*span1);
+ sn2= floor(*span2);
sn1++;
if(sn2>=rectx) sn2= rectx-1;
@@ -1667,8 +1667,8 @@ static void zbufinvulGL(ZSpan *zspan, int zvlnr, float *v1, float *v2, float *v3
for(y=my2; y>=my0; y--, span1--, span2--) {
- sn1= (int)*span1;
- sn2= (int)*span2;
+ sn1= floor(*span1);
+ sn2= floor(*span2);
sn1++;