Don't send zero data item for clips with no data

This commit is contained in:
Alexander Larsson 2010-06-23 16:20:55 +02:00 committed by Marc-André Lureau
parent 1d5d5272e2
commit 31fd48e773

View File

@ -412,9 +412,7 @@ struct Path {
struct Clip {
clip_type type;
switch (type) {
case NONE:
uint64 data @zero;
case RECTS:
case RECTS:
ClipRects *data @outvar(cliprects);
case PATH:
Path *data @outvar(clippath);