Browse Source

Merge pull request #1946 from jpark37/ternary-type-conversion

libobs-d3d11: Unnecessary type conversions
Jim 6 years ago
parent
commit
84369f60e4
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;