d3d9: Properly destroy vertex declarations.
This commit is contained in:
parent
359acf2461
commit
85ab52a48d
|
@ -248,7 +248,7 @@ static ULONG WINAPI IDirect3DVertexDeclaration9Impl_Release(LPDIRECT3DVERTEXDECL
|
||||||
IDirect3DDevice9Ex *parentDevice = This->parentDevice;
|
IDirect3DDevice9Ex *parentDevice = This->parentDevice;
|
||||||
|
|
||||||
if(!This->convFVF) {
|
if(!This->convFVF) {
|
||||||
IDirect3DVertexDeclaration9Impl_Release(iface);
|
IDirect3DVertexDeclaration9Impl_Destroy(iface);
|
||||||
}
|
}
|
||||||
IDirect3DDevice9Ex_Release(parentDevice);
|
IDirect3DDevice9Ex_Release(parentDevice);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue