diff --git a/host/platform/Windows/capture/D12/backend/dd.c b/host/platform/Windows/capture/D12/backend/dd.c index 672588dee..397cc7e65 100644 --- a/host/platform/Windows/capture/D12/backend/dd.c +++ b/host/platform/Windows/capture/D12/backend/dd.c @@ -343,7 +343,6 @@ static CaptureResult d12_dd_capture(unsigned frameBufferIndex) } bool postPointer = false; - bool postShape = false; CapturePointer pointer = {0}; // if the pointer has moved @@ -354,7 +353,7 @@ static CaptureResult d12_dd_capture(unsigned frameBufferIndex) // if the pointer shape has changed if (frameInfo.PointerShapeBufferSize > 0) d12_dd_handlePointerShape( - &pointer, frameInfo.PointerShapeBufferSize, &postShape); + &pointer, frameInfo.PointerShapeBufferSize, &postPointer); if (postPointer) d12_updatePointer(&pointer, this->shapeBuffer, this->shapeBufferSize);