fix math bug, remove opengl debug draw.