vrclient: Fix segfault on NULL texture handles

This fixes a crash on startup for Assetto Corsa Competizione (805550)
This commit is contained in:
Matt Coffin 2020-08-16 12:21:46 -06:00 committed by Andrew Eikum
parent c27354dac6
commit ed6a644fc3

View file

@ -908,6 +908,11 @@ EVRCompositorError ivrcompositor_submit(
{ {
TRACE("D3D11\n"); 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; texture_iface = texture->handle;
if (SUCCEEDED(hr = texture_iface->lpVtbl->QueryInterface(texture_iface, if (SUCCEEDED(hr = texture_iface->lpVtbl->QueryInterface(texture_iface,