[PATCH 1/3] ddraw: Apply the device state before executing a draw call.