[Mesa-dev] [PATCH] build: fix --without-glut

Brian Paul brian.e.paul at gmail.com
Tue Nov 20 13:48:54 PST 2012


On Tue, Nov 20, 2012 at 3:34 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> On 11/20/2012 08:57 AM, Burton, Ross wrote:
>>
>> On 14 November 2012 15:38, Dan Nicholson <dbn.lists at gmail.com> wrote:
>>>
>>> This looks pretty good except that I think you need to temporarily add
>>> GLUT_CFLAGS to CFLAGS and GLUT_LIBS to LIBS so that the user specified
>>> prefix works for AC_CHECK*. On the other hand, at least mesa glut has a
>>> pkg-config file, so it might be easier to just require a glut with
>>> glut.pc.
>>> Not sure about the other gluts though.
>>
>>
>> Yes, I think you're right about AC_CHECK, I'll fix that.
>>
>> FreeGLUT at least doesn't ship glut.pc.  We could drop freeglut for
>> mesa/glut but then it's had commits in the last three years, unlike
>> mesa/glut...  Undecided.
>>
>> Ross
>
>
> My advice: don't use Kilgard's GLUT.
>
> It would be nice if freeglut shipped a .pc file though.

Personally, I trust Kilgard's GLUT more freeglut.

Some versions of freeglut (hopefully fixed by now but I don't know)
spend an inordinate amount of time in a "InitSpaceBall()" function,
with a significant FPS hit.

Another problem I've seen is the first window draw happens twice
instead of once (even when not animating).  I've seen GL bugs where
the first frame drawn has a glitch but the second frame is fine.  That
kind of bug is hard to spot if you always draw twice.

And FWIW, just because a project hasn't had recent commits doesn't
mean it's bad software.  It's really just _done_.

-Brian


More information about the mesa-dev mailing list