add the preserve context directive.

It will not prevent contextLost but improve situation on many devices.
Merge pull request #182 from delahee/patch-6

add the preserve context directive.