diff --git a/src/polyscope.cpp b/src/polyscope.cpp index 8248c1ae..ca0e8eb9 100644 --- a/src/polyscope.cpp +++ b/src/polyscope.cpp @@ -894,7 +894,7 @@ void show(size_t forFrames) { exception("must initialize Polyscope with polyscope::init() before calling polyscope::show()."); } - if (isHeadless() && forFrames == 0) { + if (isHeadless() && forFrames == std::numeric_limits::max()) { info("You called show() while in headless mode. In headless mode there is no display to create windows on. By " "default, the show() call will block indefinitely. If you did not mean to run in headless mode, check the " "initialization settings. Otherwise, be sure to set a callback to make something happen while polyscope is "