Browse Source

libobs-d3d11: Unnecessary type conversions

Use raw pointer on both sides of ternary test result to remove
conversions.
jpark37 6 years ago
parent
commit
8c4d98195f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libobs-d3d11/d3d11-subsystem.cpp

+ 2 - 1
libobs-d3d11/d3d11-subsystem.cpp

@@ -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;