I'm making some changes to the server-side GLX in the DRI tree. For part of my changes I want to eliminate the need for libGLcore to have access to a VisualRec (programs/Xserver/include/scrnintstr.h, line 68). There are only two fields from that structure that are accessed by libGLcore, and I believe those values can be otherwise derrived, but I want to be sure.

First, a comment in the structure says that nplanes is "log2 (ColormapEntries)." Does that mean that "(1U<< v->nplanes) == v->ColormapEntries" is always true?

Second, for TrueColor and DirectColor visuals, is it safe to assume nplanes is the sum of the red, green, and blue bits?

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to