d3d9: Fix GetDevice() for surfaces that are part of a texture.
commit89c96ca31ea51554b70a4c59d56f3b1e8b2d3f7b
authorHenri Verbeet <hverbeet@codeweavers.com>
Mon, 7 Dec 2009 10:08:37 +0000 (7 11:08 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 Dec 2009 13:34:08 +0000 (7 14:34 +0100)
tree64669838711fef81efa50626a8d90186b0345908
parent179cee08b043105da85fd9ffa87f1138f2534a7a
d3d9: Fix GetDevice() for surfaces that are part of a texture.

If the surface is part of a texture it doesn't keep its own reference to the
device, but instead relies on the reference the texture has. This fixes a
regression introduced by ff92e6eb6a6b0f5b6ee0d062f8434cad8f31c33d.
dlls/d3d9/surface.c