Jens Albretsen wrote:
I have no way of testing what is does native? Only got windows at work. However I can see that the game expects to be allowed to copy the surface, so I must presume that windows is doing the same else the game would not run under windows. Anyway it makes sense that it is ok to load textureA into textureA, it would make no difference to textureA.
There already should be a few tests for IDirect3DTexture_Load in ddraw/tests/d3d.c so you can add a few lines there that test this.
I've added a simple test
FWIW, the test seems to pass on native Windows XP for me.
Some games are sensetive to returned error values for all kinds of silly reasons, so it's best to double check these things.