From fdbfd7e3a8df163fd8773d86c9344ddff30c14ed Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 11 Feb 2008 13:04:52 +0000 Subject: [PATCH] Bugfix: render crash with env material setting and ISB. --- source/blender/render/intern/source/zbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/render/intern/source/zbuf.c b/source/blender/render/intern/source/zbuf.c index c7e7c2efa4b..c80e6b4f98d 100644 --- a/source/blender/render/intern/source/zbuf.c +++ b/source/blender/render/intern/source/zbuf.c @@ -2161,7 +2161,7 @@ void zbuffer_solid(RenderPart *pa, RenderLayer *rl, void(*fillfunc)(RenderPart*, else { zbufclip(zspan, i, zvlnr, ho1, ho2, ho3, c1, c2, c3); if(v4) - zbufclip(zspan, i, zvlnr+RE_QUAD_OFFS, ho1, ho3, ho4, c1, c3, c4); + zbufclip(zspan, i, (env)? zvlnr: zvlnr+RE_QUAD_OFFS, ho1, ho3, ho4, c1, c3, c4); } } }