rhi: d3d: Change a warning to categorized logging

It is not that important to warn about the DXGI factory being stale
when a screen gets connected or disconnected. It is not an error,
and happens every time if a screen gets added or removed while the
application is running.

Pick-to: 6.10 6.9 6.8
Change-Id: I414668dc7aa0279f63fc79799ea53101065ab013
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Laszlo Agocs 2025-06-10 10:09:39 +02:00
parent 8f4ffb72f9
commit 619ea08036

View File

@ -159,7 +159,7 @@ void QDxgiVSyncService::beginFrame(LUID)
// else, then start from scratch.
if (dxgiFactory && !dxgiFactory->IsCurrent()) {
qWarning("QDxgiVSyncService: DXGI Factory is no longer Current");
qCDebug(lcQpaScreenUpdates, "QDxgiVSyncService: DXGI Factory is no longer Current");
QVarLengthArray<LUID, 8> luids;
for (auto it = adapters.begin(), end = adapters.end(); it != end; ++it)
luids.append(it->luid);