<div dir="ltr">On 23 August 2013 15:13, Nicholas Mack <span dir="ltr"><<a href="mailto:nichmack@gmail.com" target="_blank">nichmack@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
.../glsl-1.50/linker/gs-without-vs.shader_test | 39 ++++++++++++++++++++++<br>
1 file changed, 39 insertions(+)<br>
create mode 100644 tests/spec/glsl-1.50/linker/gs-without-vs.shader_test<br>
<br>
diff --git a/tests/spec/glsl-1.50/linker/gs-without-vs.shader_test b/tests/spec/glsl-1.50/linker/gs-without-vs.shader_test<br>
new file mode 100644<br>
index 0000000..05c14dc<br>
--- /dev/null<br>
+++ b/tests/spec/glsl-1.50/linker/gs-without-vs.shader_test<br>
@@ -0,0 +1,39 @@<br>
+# Section 2.11.2 (Program Objects) of the GLSL 1.50 spec says:<br>
+#<br>
+# "Linking will also fail if the program object contains objects to form a<br>
+# geometry shader (see section 2.12), and<br>
+# • the program contains no objects to form a vertex shader;<br>
+# • the input primitive type, output primitive type, or maximum output<br>
+# vertex count is not specified in any compiled geometry shader object;<br>
+# • the input primitive type, output primitive type, or maximum output<br>
+# vertex count is specified differently in multiple geometry shader<br>
+# objects."<br>
+<br>
+[require]<br>
+GLSL >= 1.50<br>
+<br>
+[geometry shader]<br>
+#version 150<br>
+<br>
+layout(triangles) in;<br>
+layout(triangles, max_vertices = 3) out;<br>
+<br>
+in vec4 vertex[3];<br>
+<br>
+void main()<br>
+{<br>
+ gl_Position = vertex[0];<br>
+ EmitVertex();<br>
+}<br>
+<br>
+[fragment shader]<br>
+#version 150<br>
+<br>
+out vec4 color;<br>
+<br>
+void main()<br>
+{<br>
+ color = vec4(0.0, 1.0, 0.0, 1.0);<br>
+}<br>
+<br>
+[test]<br></blockquote><div><br></div><div>I think you forgot to add to the end of the test:<br><br></div><div>link error<br></div><div><br>With that fixed, this patch is:<br><br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
</div></div></div></div>