fix the issue when close hardware acceleration in API19.