wined3d: Destroy the shader backend after the stateblock.
authorH. Verbeet <hverbeet@gmail.com>
Thu, 10 Jul 2008 21:26:10 +0000 (23:26 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 11 Jul 2008 11:58:13 +0000 (13:58 +0200)
commit6129e92e9903c65d72ec3f34f96d9aa4af779b32
treed03682b0af4c0a126a03012ee63d624edb9ec95a
parent0c419108ef962f5e8c3e904506b156505802722b
wined3d: Destroy the shader backend after the stateblock.

Destroying the stateblock potentially references the shader backend.
If the stateblock has active shaders when it is released, the shader's
destructor will tell the shader backend to destroy the corresponding
resources. This was exposed by my patch that moved the glsl program
lookup table into the backend's private data.
dlls/wined3d/device.c