Drawing problem of a polygon with over 1000 points

When the number of points of a polygon is over 1000,
the polygon isn’t drawed.
Is there a limitation of PgDrawPolygon() about the number of points of a
polygon?


From QNX Homepage : PgDrawPolygon()

Returns:
0
Successful completion
-1
The draw buffer is too small to hold the current draw state,
the draw command, and the data.
Increase the size of the draw buffer or decrease the number of points.

\

I can’t solve the problem by increasing the size of the draw buffer
(PgSetDrawBufferSize).
Is drawing a polygon with over 1000 points possible?