Another simple clean-up task: These boolean fields are redundant. Instead of code checking "if (visual->haveDepthBuffer)" we can simply do "if (visual->depthBits > 0)".
struct gl_config doesn't have member accumBits, but it has accumR, accumG and accumB members. Maybe I should change `if(visual->haveAccumBuffer)` to if((visual->accumG + visual->accumB + visual-> accumR) > 0)`?
(In reply to comment #1) > struct gl_config doesn't have member accumBits, but it has accumR, accumG > and accumB members. Maybe I should change `if(visual->haveAccumBuffer)` to > if((visual->accumG + visual->accumB + visual-> accumR) > 0)`? Sounds good.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/976.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.