Fixed clipping bugs in the hardware rasterizer