提交 d32424e5 编写于 作者: J jp9000

win-capture: Reset d3d9 capture if device recreated

Fixes a bug where if a D3D9 program recreates its device the capture
would become invalid.  Certain games (especially blizzard games) will
completely recreate their Direct3D device if a critical D3D9 error
occurs.
上级 b5df4537
......@@ -603,6 +603,11 @@ static void d3d9_capture(IDirect3DDevice9 *device,
d3d9_init(device);
}
if (capture_ready()) {
if (data.device != device) {
d3d9_free();
return;
}
if (data.using_shtex)
d3d9_shtex_capture(backbuffer);
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册