rasterize: fix bug in edge marking that overwrote depth buffer with one line of color data

This commit is contained in:
zeromus 2009-08-03 21:57:00 +00:00
parent 4015411ad6
commit 52b7454046
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ static void SoftRastFramebufferProcess()
FragmentColor edgeColor = edgeMarkColors[self>>3];
#define PIXOFFSET(dx,dy) ((dx)+(256*(dy)))
#define ISEDGE(dx,dy) ((x+(dx)!=256) && (x+(dx)!=-1) && (y+(dy)!=256) && (y+(dy)!=-1) && self > screen[i+PIXOFFSET(dx,dy)].polyid.opaque)
#define ISEDGE(dx,dy) ((x+(dx)!=256) && (x+(dx)!=-1) && (y+(dy)!=192) && (y+(dy)!=-1) && self > screen[i+PIXOFFSET(dx,dy)].polyid.opaque)
#define DRAWEDGE(dx,dy) alphaBlend(screenColor[i+PIXOFFSET(dx,dy)], edgeColor)
bool upleft = ISEDGE(-1,-1);