[PATCH 02/10] ddraw: Introduce a helper to convert ddraw render states to wined3d states.