Skip to content

Commit 7d674df

Browse files
committed
fix: example 5 implot hot reload fix
1 parent bb37adc commit 7d674df

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/example_basic_5.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ pl_app_load(plApiRegistryI* ptApiRegistry, plAppData* ptAppData)
136136
gptDearImGui = pl_get_api_latest(ptApiRegistry, plDearImGuiI);
137137
gptGfx = pl_get_api_latest(ptApiRegistry, plGraphicsI);
138138

139+
ImPlot::SetCurrentContext((ImPlotContext*)ptDataRegistry->get_data("implot"));
140+
139141
return ptAppData;
140142
}
141143

0 commit comments

Comments
 (0)