Hello,<br><br>this code is just a duplicate of the code that can be found in wined3d/utils.c<br><br>David<br>