Jacob (=Jouk) Jansen wrote:
> [EMAIL PROTECTED] wrote on 27-SEP-2006 16:02:31.84
> 
> 
>>Is the GLUT window created with a TrueColor visual?
> 
> It just running i.e. the gears program from progs/demo
> Does this program set the visual to TrueColor?

When GLUT creates a window it uses glXChooseVisual().  That function 
prefers TrueColor visuals over DirectColor visuals, all other things 
being equal.  So, GLUT programs can't specifically request a 
DirectColor visual.


>>Maybe I don't quite understand what the problem is.
> 
> 
> I run the X-server with "default" visual DirectColor (see xdpyinfo below)
> The colours of the gears program turn out to be wrong in this case. In
> glut_cmap the program runs the TrueColor stuff, while it should do
> DirectColor (I suppose).

Do you see colormap flashing as you move the mouse pointer/focus 
in/out of the gears window?  That's what usually happens when you have 
windows with different colormaps and your hardware really only has one 
colormap.

That said, if your DirectColor windows are using the standard color 
ramps, like a TrueColor visual, you shouldn't see flashing since the 
two colormaps should be equivalent.

You might want to try the hack I put into GLUT last week.  If you set 
the GLUT_FORCE_VISUAL env var to 33 you should get a GLUT window with 
the DirectColor visual.

-Brian

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to