Bug 12876 - GL/glx/glxglcore.c uses num_vis but never assigns it
Summary: GL/glx/glxglcore.c uses num_vis but never assigns it
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-21 05:23 UTC by Samuel Thibault
Modified: 2009-09-01 04:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Samuel Thibault 2007-10-21 05:23:03 UTC
in GL/glx/glxglcore.c, one can read in the __glXMesaScreenDestroy function that the num_vis field is used, but it is never set in any other function. It should probably be set to i at the end of the createMesaVisuals function. Also, in createMesaVisuals, are we sure that the j loop always find a visual? If yes, an assertion would probably be good, else there should be a continue; statement.
Comment 1 Michel Dänzer 2009-09-01 02:17:59 UTC
The GLX code has been refactored, is this still an issue?
Comment 2 Samuel Thibault 2009-09-01 04:01:21 UTC
Well, I can't find the code any more so I guess it just disappeared.


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.