<div dir="ltr">On 3 June 2013 05:42, Fabian Bieler <span dir="ltr"><<a href="mailto:fabianbieler@fastmail.fm" target="_blank">fabianbieler@fastmail.fm</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">This is usefull for core profile OpenGL contexts and geometry shaders.<br></blockquote><div><br></div><div>s/usefull/useful/ here too.<br>
<br>Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

---<br>
 tests/shaders/shader_runner.c | 6 +++---<br>
 1 file changed, 3 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c<br>
index e022b90..874e76b 100644<br>
--- a/tests/shaders/shader_runner.c<br>
+++ b/tests/shaders/shader_runner.c<br>
@@ -1454,11 +1454,11 @@ draw_instanced_rect(int primcount, float x, float y, float w, float h)<br>
        verts[1][1] = y;<br>
        verts[1][2] = 0.0;<br>
        verts[1][3] = 1.0;<br>
-       verts[2][0] = x + w;<br>
+       verts[2][0] = x;<br>
        verts[2][1] = y + h;<br>
        verts[2][2] = 0.0;<br>
        verts[2][3] = 1.0;<br>
-       verts[3][0] = x;<br>
+       verts[3][0] = x + w;<br>
        verts[3][1] = y + h;<br>
        verts[3][2] = 0.0;<br>
        verts[3][3] = 1.0;<br>
@@ -1466,7 +1466,7 @@ draw_instanced_rect(int primcount, float x, float y, float w, float h)<br>
        glVertexPointer(4, GL_FLOAT, 0, verts);<br>
        glEnableClientState(GL_VERTEX_ARRAY);<br>
<br>
-       glDrawArraysInstanced(GL_QUADS, 0, 4, primcount);<br>
+       glDrawArraysInstanced(GL_TRIANGLE_STRIP, 0, 4, primcount);<br>
<br>
        glDisableClientState(GL_VERTEX_ARRAY);<br>
 }<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.1.2<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div></div>