diff --git a/examples/example_apple_opengl2/main.mm b/examples/example_apple_opengl2/main.mm index f336fa99c..9b3fa8831 100644 --- a/examples/example_apple_opengl2/main.mm +++ b/examples/example_apple_opengl2/main.mm @@ -81,6 +81,7 @@ -(void)updateAndDrawDemoView { // Start the Dear ImGui frame + ImGuiIO& io = ImGui::GetIO(); ImGui_ImplOpenGL2_NewFrame(); ImGui_ImplOSX_NewFrame(self); ImGui::NewFrame();