I have been trying to figure out why i'm getting an initialization error:
int size = polygons[polyID].n;
Clipper clipper = Clipper();
Vertex tmp[50];
size = clipper.clipPolygon(polygons[polyID].n, polygons[polyID].p, tmp, CWll, CWur);
int x[size] = {};
int y[size] = {};
and the error I am getting is:
Pipeline.cpp:89:8: error: variable-sized object may not be initialized
int x[size] = {};
^~~~
Pipeline.cpp:90:8: error: variable-sized object may not be initialized
int y[size] = {};
Does anyone have an idea of what might be causing this issue?