Examples: OpenGL3: Added shaders more versions of GLSL + made the example app default to GL 3.0 + GLSL 130 (instead of GL 3.2 + GLSL 150) unless on Mac. (#1938, #1900, #1513, #1466, etc.)

This commit is contained in:
omar
2018-07-10 18:29:57 +02:00
parent b829671df1
commit fff014dfed
6 changed files with 120 additions and 26 deletions

View File

@ -24,6 +24,8 @@ int main(int, char**)
if (!glfwInit())
return 1;
GLFWwindow* window = glfwCreateWindow(1280, 720, "ImGui GLFW+OpenGL2 example", NULL, NULL);
if (window == NULL)
return 1;
glfwMakeContextCurrent(window);
glfwSwapInterval(1); // Enable vsync