libobs-d3d11: Unnecessary type conversions

Use raw pointer on both sides of ternary test result to remove
conversions.
This commit is contained in:
jpark37 2019-06-27 08:55:26 -05:00
parent cff0d6800f
commit 8c4d98195f

View File

@ -1358,7 +1358,8 @@ void device_set_render_target(gs_device_t *device, gs_texture_t *tex,
return;
}
ID3D11RenderTargetView *rt = tex2d ? tex2d->renderTarget[0] : nullptr;
ID3D11RenderTargetView *rt = tex2d ? tex2d->renderTarget[0].Get()
: nullptr;
device->curRenderTarget = tex2d;
device->curRenderSide = 0;