Jacob (=Jouk) Jansen wrote:
> Hi all,
> 
> Today I changed the Default visual of my X-server to DirectColor visual. All 
> is
> fine except that all objects drawn by Mesa get weird colours.
> I suspect that DirectColor-visuals is not working properly in Mesa.
> Would it be easy to fix?

With DirectColor you have to be sure to initialize the red, green and 
blue lookup tables (colormaps) to the suitable values (usually a 
linear ramp).

Setting up the X colormap is outside the scope of OpenGL/Mesa and is 
the responsibility of the app or GUI toolkit.

Are you using GLUT?  GLUT should be taking care of that.

-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