[Mesa-dev] [Bug 46376] render error when run glsl demo or mesa demo with X

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 28 16:24:48 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=46376

--- Comment #8 from Brian Paul <brianp at vmware.com> ---
(In reply to comment #7)
> I managed to bisect this down to:
> 
> commit 9a7f84d6b28e180ef79349b36de9a5d58a1e2dc9
> Author: José Fonseca <jfonseca at vmware.com>
> 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.

I believe this is a freeglut bug.  Kilgard's GLUT came first and the behaviour
of window reshaping is documented here:
http://www.opengl.org/resources/libraries/glut/spec3/node48.html#SECTION00083000000000000000

according to that, the reshape function should always get called at least once
when the window first appears.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130301/e9c24395/attachment.html>


More information about the mesa-dev mailing list