Skip to content

Commit b08e86d

Browse files
committed
Try to patch graph editor for headless.
1 parent 73f9878 commit b08e86d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

source/MaterialXGraphEditor/Main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ int main(int argc, char* const argv[])
167167
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
168168
#endif
169169

170+
// For headless operation (when captureFilename is specified), make window invisible
171+
if (!captureFilename.empty())
172+
{
173+
glfwWindowHint(GLFW_VISIBLE, GL_FALSE);
174+
}
175+
170176
// Create window with graphics context
171177
GLFWwindow* window = glfwCreateWindow(1280, 960, "MaterialX Graph Editor", NULL, NULL);
172178
if (!window)

0 commit comments

Comments
 (0)