Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/opensubdiv/gpu_shader_opensubdiv_geometry.glsl')
-rw-r--r--intern/opensubdiv/gpu_shader_opensubdiv_geometry.glsl15
1 files changed, 2 insertions, 13 deletions
diff --git a/intern/opensubdiv/gpu_shader_opensubdiv_geometry.glsl b/intern/opensubdiv/gpu_shader_opensubdiv_geometry.glsl
index 3a83d44a8be..b16a5cca733 100644
--- a/intern/opensubdiv/gpu_shader_opensubdiv_geometry.glsl
+++ b/intern/opensubdiv/gpu_shader_opensubdiv_geometry.glsl
@@ -29,22 +29,11 @@ struct VertexData {
vec2 uv;
};
-#if __VERSION__ >= 150
layout(lines_adjacency) in;
- #ifdef WIREFRAME
+#ifdef WIREFRAME
layout(line_strip, max_vertices = 8) out;
- #else
-layout(triangle_strip, max_vertices = 4) out;
- #endif
#else
- #extension GL_EXT_geometry_shader4: require
- /* application provides input/output layout info */
-#endif
-
-#if __VERSION__ < 140
- #extension GL_ARB_uniform_buffer_object: require
- #extension GL_ARB_texture_buffer_object: enable
- #extension GL_EXT_texture_buffer_object: enable
+layout(triangle_strip, max_vertices = 4) out;
#endif
uniform mat4 modelViewMatrix;