vrclient: Fix segfault on NULL texture handles
This fixes a crash on startup for Assetto Corsa Competizione (805550)
This commit is contained in:
parent
c27354dac6
commit
ed6a644fc3
1 changed files with 5 additions and 0 deletions
|
@ -908,6 +908,11 @@ EVRCompositorError ivrcompositor_submit(
|
|||
{
|
||||
TRACE("D3D11\n");
|
||||
|
||||
if (!texture->handle) {
|
||||
WARN("No D3D11 texture %p.\n", texture);
|
||||
return cpp_func(linux_side, eye, texture, bounds, flags);
|
||||
}
|
||||
|
||||
texture_iface = texture->handle;
|
||||
|
||||
if (SUCCEEDED(hr = texture_iface->lpVtbl->QueryInterface(texture_iface,
|
||||
|
|
Loading…
Reference in a new issue