提交 8c4d9819 编写于 作者: J jpark37

libobs-d3d11: Unnecessary type conversions

Use raw pointer on both sides of ternary test result to remove
conversions.
上级 cff0d680
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册