<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - render error when run glsl demo or mesa demo with X"
href="https://bugs.freedesktop.org/show_bug.cgi?id=46376#c8">Comment # 8</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - render error when run glsl demo or mesa demo with X"
href="https://bugs.freedesktop.org/show_bug.cgi?id=46376">bug 46376</a>
from <span class="vcard"><a class="email" href="mailto:brianp@vmware.com" title="Brian Paul <brianp@vmware.com>"> <span class="fn">Brian Paul</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=46376#c7">comment #7</a>)
<span class="quote">> I managed to bisect this down to:
>
> commit 9a7f84d6b28e180ef79349b36de9a5d58a1e2dc9
> Author: José Fonseca <<a href="mailto:jfonseca@vmware.com">jfonseca@vmware.com</a>>
> Date: Thu Jul 14 17:28:52 2011 +0100
>
> Squashed commit of the following:
> ...
>
> which is the commit that removed Mark Kilgard's GLUT from the Mesa tree.
> After that, building Mesa no longer built libglut. This meant that the
> demos started running with your distro-provided libglut, which is typically
> freeglut (not Kilgard's GLUT).
>
> With freeglut and no window manager, the Mesa demos never get their
> Reshape() function called, so their initial frustum and such never get set.
> (Kilgard's GLUT did cause Reshape() to get called.) However, I don't
> believe this is a bug; I believe freeglut's behavior is valid.
>
> I've filed #61640 against Mesa demos; they should probably be enhanced to
> set up their initial state and not rely on Reshape() getting automatically
> called. This is just generally a good idea.</span >
I believe this is a freeglut bug. Kilgard's GLUT came first and the behaviour
of window reshaping is documented here:
<a href="http://www.opengl.org/resources/libraries/glut/spec3/node48.html#SECTION00083000000000000000">http://www.opengl.org/resources/libraries/glut/spec3/node48.html#SECTION00083000000000000000</a>
according to that, the reshape function should always get called at least once
when the window first appears.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>