fix bug in wireframe rendering sample