Fixed bugs. Now using RenderTexture to draw game at 1x1 pixel scale and then draw it scale up to the window. Resizing window now doesn't bug out.