mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-31 02:50:00 +00:00
Separate handling of GLX visuals and GLX FBConfigs.
XIDs for GLX visuals and FBConfigs used to be interchangable and the list of GLX visuals was identical to the list for FBConfigs. This patch splits handling of these two data types and allows the X server to pick and choose the FBConfigs that are exposed as visuals.
This commit is contained in:
parent
0af8180683
commit
8fc635e6a8
5 changed files with 247 additions and 299 deletions
|
|
@ -280,7 +280,7 @@ find_mesa_visual(__GLXscreen *screen, VisualID vid)
|
|||
const __GLcontextModes *modes;
|
||||
unsigned i = 0;
|
||||
|
||||
for ( modes = screen->modes ; modes != NULL ; modes = modes->next ) {
|
||||
for ( modes = screen->fbconfigs ; modes != NULL ; modes = modes->next ) {
|
||||
if ( modes->visualID == vid ) {
|
||||
break;
|
||||
}
|
||||
|
|
@ -314,7 +314,7 @@ static void init_screen_visuals(__GLXMESAscreen *screen)
|
|||
memset(used, 0, pScreen->numVisuals * sizeof(int));
|
||||
|
||||
num_vis = 0;
|
||||
for ( modes = screen->base.modes; modes != NULL; modes = modes->next ) {
|
||||
for ( modes = screen->base.fbconfigs; modes != NULL; modes = modes->next ) {
|
||||
const int vis_class = _gl_convert_to_x_visual_type( modes->visualType );
|
||||
const int nplanes = (modes->rgbBits - modes->alphaBits);
|
||||
const VisualPtr pVis = pScreen->visuals;
|
||||
|
|
|
|||
Loading…
Reference in a new issue