Skip to content

OpenGL sketches with early noLoop don't refresh screen #508

@codeanticode

Description

@codeanticode

The following sketch shows a gray screen:

void setup() {
  size(400, 400, P2D);
}

void draw() {
  background(255, 0, 0);
  ellipse(200, 200, 100, 50);
  println("draw");
  if (frameCount == 2) noLoop();
}

If noLoop() is called on frame 3 or higher, then the output is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions