| Index: webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc b/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
|
| index 90d8e896f1b0b17f59f0c800a52a116ab0fe3aa0..66e5e75812aa66a30ce38446f95cbb9ba3309c84 100644
|
| --- a/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
|
| +++ b/webrtc/modules/desktop_capture/win/dxgi_texture_mapping.cc
|
| @@ -29,7 +29,8 @@ DxgiTextureMapping::~DxgiTextureMapping() = default;
|
| bool DxgiTextureMapping::CopyFromTexture(
|
| const DXGI_OUTDUPL_FRAME_INFO& frame_info,
|
| ID3D11Texture2D* texture) {
|
| - RTC_DCHECK(texture && frame_info.AccumulatedFrames > 0);
|
| + RTC_DCHECK_GT(frame_info.AccumulatedFrames, 0);
|
| + RTC_DCHECK(texture);
|
| *rect() = {0};
|
| _com_error error = duplication_->MapDesktopSurface(rect());
|
| if (error.Error() != S_OK) {
|
|
|