Bind MDI buffer before drawing.