From 2e56e1415a0db11c5bf93cd517ff12bf3df43a5a Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Thu, 18 May 2017 17:32:39 -0400 Subject: OpenGL: remove EXT_geometry_shader4 from OpenSubdiv Old extension was made obsolete by GL 3.2. Input/output layout is part of GLSL. --- intern/opensubdiv/opensubdiv_gpu_capi.cc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/intern/opensubdiv/opensubdiv_gpu_capi.cc b/intern/opensubdiv/opensubdiv_gpu_capi.cc index d6b30b9bfe3..8b48b526ccc 100644 --- a/intern/opensubdiv/opensubdiv_gpu_capi.cc +++ b/intern/opensubdiv/opensubdiv_gpu_capi.cc @@ -275,24 +275,6 @@ GLuint linkProgram(const char *version, const char *define) glBindAttribLocation(program, 0, "position"); glBindAttribLocation(program, 1, "normal"); - - if (!GLEW_VERSION_3_2) { - /* provide input/output layout info */ - glProgramParameteriEXT(program, - GL_GEOMETRY_INPUT_TYPE_EXT, - GL_LINES_ADJACENCY_EXT); - - bool wireframe = strstr(define, "WIREFRAME") != NULL; - - glProgramParameteriEXT(program, - GL_GEOMETRY_OUTPUT_TYPE_EXT, - wireframe ? GL_LINE_STRIP : GL_TRIANGLE_STRIP); - - glProgramParameteriEXT(program, - GL_GEOMETRY_VERTICES_OUT_EXT, - 8); - } - glLinkProgram(program); glDeleteShader(vertexShader); -- cgit v1.2.3