mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-31 04:20:08 +01: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>
(cherry picked from commit 4039603413)
This commit is contained in:
parent
5cae7f5a60
commit
ee6ce7e4cc
1 changed files with 1 additions and 1 deletions
|
|
@ -403,7 +403,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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue