Bugfix #5197
Radiosity tool or render was using an uninitialized variable, causing clip to work incorrect. (black lines in radiosity). Error caused by commit in august, after 2.42a release.
This commit is contained in:
@@ -1799,6 +1799,9 @@ void RE_zbufferall_radio(struct RadView *vw, RNode **rg_elem, int rg_totelem, Re
|
||||
/* needed for projectvert */
|
||||
MTC_Mat4MulMat4(winmat, vw->viewmat, vw->winmat);
|
||||
|
||||
/* for clipping... bad stuff actually */
|
||||
R.clipcrop= 1.0f;
|
||||
|
||||
zbuf_alloc_span(&zspan, vw->rectx, vw->recty);
|
||||
zspan.zmulx= ((float)vw->rectx)/2.0;
|
||||
zspan.zmuly= ((float)vw->recty)/2.0;
|
||||
|
||||
Reference in New Issue
Block a user