[c-host] dxgi: fix segfault with maxTextures=1 on client reconnect

This commit is contained in:
Geoffrey McRae 2019-12-17 20:56:14 +11:00
parent 8ada29e25f
commit 0bd19cfd38
2 changed files with 30 additions and 21 deletions

View file

@ -222,6 +222,9 @@ static bool dxgi_init(void * pointerShape, const unsigned int pointerSize)
this->texWIndex = 0;
this->texReady = 0;
os_resetEvent(this->frameEvent );
os_resetEvent(this->pointerEvent);
status = CreateDXGIFactory1(&IID_IDXGIFactory1, (void **)&this->factory);
if (FAILED(status))
{