Henri Verbeet : d3d9: Fix GetDevice() for surfaces that are part of a texture.