diff --git a/src/gui/rhi/qrhid3d12_p_p.h b/src/gui/rhi/qrhid3d12_p_p.h index 9f72055e7c..dec217e771 100644 --- a/src/gui/rhi/qrhid3d12_p_p.h +++ b/src/gui/rhi/qrhid3d12_p_p.h @@ -203,7 +203,7 @@ struct QD3D12ObjectPool bool isValid(const QD3D12ObjectHandle &handle) const { return handle.index > 0 - && handle.index < data.count() + && handle.index < quint32(data.count()) && handle.generation > 0 && handle.generation == data[handle.index].generation && data[handle.index].object.has_value();