Re: Re: [Chromium-users] Fedora Core 2 (Xorg) issues

Brian Paul <[email protected]>
Newsgroups gmane.comp.graphics.chromium.devel,gmane.comp.graphics.chromium.user
Message-ID <[email protected]>
Mike Houston wrote:
> 
>> [...]
>>
>> This is funny.  Notice that glXMakeCurrent is being called with two 
>> different windows (8388610 and 8388612), and two different contexts.
>>
>> Are you using the same version of GLUT that you've always been using? 
>>  I wonder if FC2 is using "freeglut" instead of the Kilgard library.
>>
>> -Brian
>>
> Say NO to FreeGLUT!  Everything is working again with RH9's glut 
> package.  What the heck is wrong with how freeglut works?...  grumble, 
> grumble.
> Can one of the RedHat folks take a look at freeglut, since it now ships 
> with Fedora, and see what the heck is breaking Chromium?  Outside of 
> Chromium, glut apps seem to work fine with freeglut...

I've got patches for freeglut and Chromium that seem to fix this 
problem.  As I mentioned before, freeglut uses OpenGL to render its 
pop-up menus instead of Xlib or Win32 like the original glut.  The 
second Cr window that's appearing corresponds to the app's glut menu.

The patch to freeglut sets the menu window's name to "freeglut menu" 
and moves the initial call to glXMakeCurrent after the window's name 
is set.

The patch to Chromium adds a new crfaker option 
'ignore_freeglut_menus' (defaults to True) that checks if the window 
title is 'freeglut menu" and causes Chromium to render such windows 
with the native OpenGL.

I'll check in the changes to Chromium and send the patch to the 
freeglut developers.

-Brian


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.