Lines 271-276
pickFBConfig(__GLXscreen * pGlxScreen, VisualPtr visual)
Link Here
|
271 |
/* If it's the 32-bit RGBA visual, demand a 32-bit fbconfig. */ |
271 |
/* If it's the 32-bit RGBA visual, demand a 32-bit fbconfig. */ |
272 |
if (visual->nplanes == 32 && config->rgbBits != 32) |
272 |
if (visual->nplanes == 32 && config->rgbBits != 32) |
273 |
continue; |
273 |
continue; |
|
|
274 |
/* If it's the 32-bit RGBA visual, do not pick sRGB capable config. |
275 |
* This can cause issues with compositors that are not sRGB aware. |
276 |
*/ |
277 |
if (visual->nplanes == 32 && config->sRGBCapable == GL_TRUE) |
278 |
continue; |
274 |
/* Can't use the same FBconfig for multiple X visuals. I think. */ |
279 |
/* Can't use the same FBconfig for multiple X visuals. I think. */ |
275 |
if (config->visualID != 0) |
280 |
if (config->visualID != 0) |
276 |
continue; |
281 |
continue; |
277 |
- |
|
|