On 22 May 2012 14:42, Anuj Phogat <span dir="ltr">&lt;<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, May 22, 2012 at 8:37 AM, Paul Berry &lt;<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>&gt; wrote:<br>
&gt; On 18 May 2012 16:56, Anuj Phogat &lt;<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>&gt; wrote:<br>
&gt;&gt; +<br>
&gt;&gt; +       /* Draw test pattern in mulisample test_fbo with GL_LINE_SMOOTH<br>
&gt;&gt; +        * enabled<br>
&gt;&gt; +        */<br>
&gt;&gt; +       glEnable(GL_LINE_SMOOTH);<br>
&gt;&gt; +       glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);<br>
&gt;&gt; +       glDisable (GL_DEPTH_TEST);<br>
&gt;<br>
&gt;<br>
&gt; Can you comment on why it&#39;s necessary to disable depth testing here?  It&#39;s<br>
&gt; not immediately obvious to me.<br>
&gt;<br>
</div></div><div></div>It&#39;s required to correctly render overlapping smooth primitives.<br>
Otherwise we have to render the primitives<br>
in back to front order.<br>
For more explanation read OpenGL FAQ 14.150:<br>
<a href="http://www.opengl.org/archives/resources/faq/technical/rasterization.htm" target="_blank">http://www.opengl.org/archives/resources/faq/technical/rasterization.htm</a><br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br>Ok, thanks.  I&#39;m not 100% sure this is necessary for this test (since it&#39;s not drawing any overlapping lines) but I&#39;m ok with leaving it in anyhow to be on the safe side.  Would you mind including a comment at this point in the file to clarify?<br>
<br>With that change, this patch is:<br>Reviewed-by: Paul Berry &lt;<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>&gt;<br></div></div>