Setting Path Coordinate/Segment count

Hey,

i’m try to modify a VGPath’s segment- and coordinate-count in the following way:


VGint Num = 2;
VGint NumSet = 9;
VGint NumQueried = 0;

VGPath myPath = VG_INVALID_HANDLE;

int pts[] = { 0, 0, 1, 1 } ; 
VGubyte commands[] = { VG_MOVE_TO_ABS, VG_LINE_TO_ABS };
	
myPath = vgCreatePath(VG_PATH_FORMAT_STANDARD,VG_PATH_DATATYPE_S_32, 1.0,   0.0, 0, 0, VG_PATH_CAPABILITY_ALL);

if (myPath != VG_INVALID_HANDLE)
{
	vgAppendPathData(myPath, Num, commands, pts);

	NumQueried = vgGetParameteri(myPath, VG_PATH_NUM_SEGMENTS);
	NumQueried = vgGetParameteri(myPath, VG_PATH_NUM_COORDS);

	vgSetParameteri(myPath, VG_PATH_NUM_SEGMENTS, NumSet);
	vgSetParameteri(myPath, VG_PATH_NUM_COORDS,  2*NumSet);
		
	NumQueried = vgGetParameteri(myPath, VG_PATH_NUM_SEGMENTS);
	NumQueried = vgGetParameteri(myPath, VG_PATH_NUM_COORDS);
}

i always get the segment(and coodinate)-count passed to vgAppendData(…), EGL is initialized correctly(because drawing works and a valid path-handle is created), i also tryed to pass the matching numbers for capacityhints, but i also didn’t work - can anyone help?