Ver Fonte

libobs-d3d11: Unnecessary type conversions

Use raw pointer on both sides of ternary test result to remove
conversions.
jpark37 há 6 anos atrás
pai
commit
8c4d98195f
1 ficheiros alterados com 2 adições e 1 exclusões
  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;
 		return;
 	}
 	}
 
 
-	ID3D11RenderTargetView *rt = tex2d ? tex2d->renderTarget[0] : nullptr;
+	ID3D11RenderTargetView *rt = tex2d ? tex2d->renderTarget[0].Get()
+					   : nullptr;
 
 
 	device->curRenderTarget = tex2d;
 	device->curRenderTarget = tex2d;
 	device->curRenderSide = 0;
 	device->curRenderSide = 0;