Index: webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc |
diff --git a/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc b/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc |
index 48dc02748ba0bed42021106dd9b06c7ba747266e..c4415ca7954f011abb8cd9de11c96360ad634fff 100644 |
--- a/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc |
+++ b/webrtc/modules/desktop_capture/win/dxgi_texture_staging.cc |
@@ -87,7 +87,8 @@ void DxgiTextureStaging::AssertStageAndSurfaceAreSameObject() { |
bool DxgiTextureStaging::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); |
// AcquireNextFrame returns a CPU inaccessible IDXGIResource, so we need to |
// copy it to a CPU accessible staging ID3D11Texture2D. |