Rasterizer not working, Adjust rendering code