Added flush call to debug draw