We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1a5e2e commit cb7400dCopy full SHA for cb7400d
1 file changed
source/GpuOption/GpuOptionWin32.cpp
@@ -191,7 +191,7 @@ std::optional<int> perfer_gpu()
191
LogWarn << "software adapter, skip" << VAR(adapter_index) << VAR(adapter_desc);
192
continue;
193
}
194
- if (desc.DedicatedVideoMemory < 2 * 1024 * 1024 * 1024) {
+ if (desc.DedicatedVideoMemory < 2LL * 1024 * 1024 * 1024) {
195
LogWarn << "adapter has less than 2GB video memory, skip" << VAR(adapter_index) << VAR(adapter_desc)
196
<< VAR(desc.DedicatedVideoMemory);
197
0 commit comments