fix glReadPixels parameters to handle odd-width windows correctly