D1179: Gradient Stop Collection Zero Stops

Creating an ID2D1GradientStopCollection requires at least one gradient stop.


Possible Causes

The application called ID2D1RenderTarget::CreateGradientStopCollection, but specified a gradient stop count of 0.

Possible Fixes

When creating an ID2D1GradientStopCollection, the application should specify at least one gradient stop with its color and position. See ID2D1RenderTarget::CreateGradientStopCollection for an example.