mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
glx: Inialize best_score before calculating visual scores
This bug was pointed out by Peter Åstrand. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -354,7 +354,7 @@ static __GLXconfig *
|
||||
pickFBConfig(__GLXscreen *pGlxScreen, VisualPtr visual)
|
||||
{
|
||||
__GLXconfig *best = NULL, *config;
|
||||
int best_score;
|
||||
int best_score = 0;
|
||||
|
||||
for (config = pGlxScreen->fbconfigs; config != NULL; config = config->next) {
|
||||
int score = 0;
|
||||
|
||||
Reference in New Issue
Block a user