Fix out of bounds bug

This commit is contained in:
Magnus Norddahl 2016-12-16 05:01:49 +01:00
parent 0b4fd6c766
commit 9b98c4d512

View file

@ -89,7 +89,7 @@ void PolyTriangleDrawer::draw_arrays(const PolyDrawArgs &drawargs, WorkerThreadD
auto llvm = Drawers::Instance();
PolyDrawFuncPtr drawfuncs[3];
PolyDrawFuncPtr drawfuncs[4];
int num_drawfuncs = 0;
drawfuncs[num_drawfuncs++] = drawargs.subsectorTest ? &ScreenTriangle::SetupSubsector : &ScreenTriangle::SetupNormal;