processing icon indicating copy to clipboard operation
processing copied to clipboard

Shape with only two vertices won't draw (P2D and P3D, works with JAVA2D)

Open ertdfgcvb opened this issue 9 years ago • 1 comments

Description

A shape with only two vertices in immediate mode won't render; it appears when adding a third vertex. This issue presents itself only with the hardware renderers.

Steps to Reproduce

void setup(){
  size(200, 200, P2D);
  noFill();
  stroke(0);
  beginShape();
  vertex(10, 10);
  vertex(100, 100);
  endShape();
}

Your Environment

Processing version: 3.3.6 Operating System and OS version: macOS 10.12.6

ertdfgcvb avatar Sep 23 '17 23:09 ertdfgcvb

This issue has been automatically closed and locked.

Processing 3.x is no longer actively developed. Since January 2020, development moved to the Processing 4 repository.

If this issue is still relevant to Processing 4, we'd love to hear from you. Please open a new issue at: https://github.com/processing/processing4/issues/new/choose

Thank you for helping improve Processing.

github-actions[bot] avatar Jul 15 '26 15:07 github-actions[bot]