Skip to content

Commit 4c69446

Browse files
committed
use consistent initialization check
1 parent 38f9b04 commit 4c69446

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/polyscope.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,9 +1114,7 @@ void mainLoopIteration() {
11141114

11151115
void show(size_t forFrames) {
11161116

1117-
if (!state::initialized) {
1118-
exception("must initialize Polyscope with polyscope::init() before calling polyscope::show().");
1119-
}
1117+
checkInitialized();
11201118

11211119
if (isHeadless() && forFrames == 0) {
11221120
info("You called show() while in headless mode. In headless mode there is no display to create windows on. By "

0 commit comments

Comments
 (0)