glx: Do not flood with warnings when reducing during config lookup
With things like sample count reducing a format (16 -> 8 -> 4 -> ...)
and trying again is perfectly fine. There is no need to show warnings
in this case. Even some of our own examples in qtdeclarative do a
setSamples(16) which is rarely supported. These all show warnings since
8ec98fc2dc
. Avoid this.
Change-Id: Ice83d5720b02e92f77cfd63918c98ad222513b6a
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
This commit is contained in:
parent
5322998a0b
commit
4bab72368f
@ -258,9 +258,11 @@ GLXFBConfig qglx_findConfig(Display *display, int screen , QSurfaceFormat format
|
||||
qCDebug(lcGlx) << "qglx_findConfig: Found non-matching but compatible FBConfig";
|
||||
return compatibleCandidate;
|
||||
}
|
||||
qCWarning(lcGlx, "qglx_findConfig: Failed to finding matching FBConfig (%d %d %d %d)", requestedRed, requestedGreen, requestedBlue, requestedAlpha);
|
||||
} while (qglx_reduceFormat(&format));
|
||||
|
||||
if (!config)
|
||||
qCWarning(lcGlx) << "qglx_findConfig: Failed to finding matching FBConfig for" << format;
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user