Maarten Lankhorst : d3d9: Add a test to see whether offscreen surfaces can be locked while a reset occurs .