浏览代码

Examples: SDL+OpenGL3: fixed build on ES2 target. (#4492)

ocornut 4 年之前
父节点
当前提交
11103f8253
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/example_sdl_opengl3/main.cpp

+ 2 - 1
examples/example_sdl_opengl3/main.cpp

@@ -8,9 +8,10 @@
 #include "imgui_impl_opengl3.h"
 #include <stdio.h>
 #include <SDL.h>
-#include <SDL_opengl.h>
 #if defined(IMGUI_IMPL_OPENGL_ES2)
 #include <SDL_opengles2.h>
+#else
+#include <SDL_opengl.h>
 #endif
 
 // Main code