Browse Source

Examples: OpenGL3+SDL: Changed GLSL shader version to 150 (#1466, #1504)

omar 7 years ago
parent
commit
7484c63449
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp

+ 2 - 2
examples/sdl_opengl3_example/imgui_impl_sdl_gl3.cpp

@@ -221,7 +221,7 @@ bool ImGui_ImplSdlGL3_CreateDeviceObjects()
     glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &last_vertex_array);
 
     const GLchar *vertex_shader =
-        "#version 330\n"
+        "#version 150\n"
         "uniform mat4 ProjMtx;\n"
         "in vec2 Position;\n"
         "in vec2 UV;\n"
@@ -236,7 +236,7 @@ bool ImGui_ImplSdlGL3_CreateDeviceObjects()
         "}\n";
 
     const GLchar* fragment_shader =
-        "#version 330\n"
+        "#version 150\n"
         "uniform sampler2D Texture;\n"
         "in vec2 Frag_UV;\n"
         "in vec4 Frag_Color;\n"