d3d8: Fix GetDevice() for surfaces that are part of a texture.
authorHenri Verbeet <hverbeet@codeweavers.com>
Mon, 7 Dec 2009 10:08:36 +0000 (11:08 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 Dec 2009 13:34:04 +0000 (14:34 +0100)
commit179cee08b043105da85fd9ffa87f1138f2534a7a
treeb890b20800346605f5530c5c1a8a9120bbe6efa7
parent740e2d403edc46529c2475d50a9ceab7c0c77f0c
d3d8: 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 3cedef2ffea3a72d9717470f01a3a046db923e4b.
dlls/d3d8/surface.c