Skip to content

Commit f0a1b62

Browse files
committed
Add DCHECK for invalid case that's currently impossible to reach
1 parent fa06f37 commit f0a1b62

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎engine/src/flutter/impeller/entity/contents/uber_sdf_contents.cc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ bool UberSDFContents::RenderSSBO(const ContentContext& renderer,
212212
// is unused in the shader.
213213
color_stops.resize(1);
214214
}
215+
FML_DCHECK(!color_stops.empty());
215216
frag_info.colors_length = static_cast<Scalar>(color_stops.size());
216217

217218
BufferView color_buffer = data_host_buffer.Emplace(

0 commit comments

Comments
 (0)