Skip to content

Commit a161f23

Browse files
committed
Add OGGraphSetNeedsUpdate API
1 parent 79ffcaa commit a161f23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/OpenGraph_SPI/Graph/OGGraph.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,3 +200,10 @@ const void * _Nullable OGGraphClearUpdate(void) {
200200
}
201201
return value;
202202
}
203+
204+
void OGGraphSetNeedsUpdate(OGGraphRef graph) {
205+
if (graph->context.isInvalid()) {
206+
OG::precondition_failure("invalidated graph");
207+
}
208+
// graph->context->set_needs_update();
209+
}

0 commit comments

Comments
 (0)