don't call drawTriangles if there is no data to draw