mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[d3d9] Fix crash if device is freed with bound textures
This commit is contained in:
parent
bef2ef69ab
commit
2b09932d51
@ -1358,8 +1358,6 @@ namespace dxvk {
|
||||
std::atomic<int64_t> m_availableMemory = { 0 };
|
||||
std::atomic<int32_t> m_samplerCount = { 0 };
|
||||
|
||||
Direct3DState9 m_state;
|
||||
|
||||
D3D9DeviceLostState m_deviceLostState = D3D9DeviceLostState::Ok;
|
||||
HWND m_fullscreenWindow = NULL;
|
||||
|
||||
@ -1367,6 +1365,10 @@ namespace dxvk {
|
||||
lru_list<D3D9CommonTexture*> m_mappedTextures;
|
||||
#endif
|
||||
|
||||
// m_state should be declared last (i.e. freed first), because it
|
||||
// references objects that can call back into the device when freed.
|
||||
Direct3DState9 m_state;
|
||||
|
||||
D3D9VkInteropDevice m_d3d9Interop;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user