Browse Source

Examples: Apple+OpenGL: Fix build.

omar 3 years ago
parent
commit
2fa60bec27
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/example_apple_opengl2/main.mm

+ 1 - 0
examples/example_apple_opengl2/main.mm

@@ -81,6 +81,7 @@
 -(void)updateAndDrawDemoView
 -(void)updateAndDrawDemoView
 {
 {
     // Start the Dear ImGui frame
     // Start the Dear ImGui frame
+    ImGuiIO& io = ImGui::GetIO();
     ImGui_ImplOpenGL2_NewFrame();
     ImGui_ImplOpenGL2_NewFrame();
     ImGui_ImplOSX_NewFrame(self);
     ImGui_ImplOSX_NewFrame(self);
     ImGui::NewFrame();
     ImGui::NewFrame();