This time, with tests for d3d8 and d3d9.<br><br>David Adam<br>