mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-23 06:38:43 +02:00
Merge pull request #1026 from ryanhattam/patch-1
Fix Disabling AMD GPUs
This commit is contained in:
@@ -56,9 +56,10 @@ struct configVal {
|
||||
Type iType;
|
||||
};
|
||||
|
||||
//Same order as in configEnum, as per comment above
|
||||
// Same order as in configEnum, as per comment above
|
||||
// kNullType means any type
|
||||
configVal oConfigValues[] = {
|
||||
{ aGpuThreadsConf, "gpu_threads_conf", kArrayType },
|
||||
{ aGpuThreadsConf, "gpu_threads_conf", kNullType },
|
||||
{ iPlatformIdx, "platform_index", kNumberType }
|
||||
};
|
||||
|
||||
@@ -68,6 +69,8 @@ inline bool checkType(Type have, Type want)
|
||||
{
|
||||
if(want == have)
|
||||
return true;
|
||||
else if(want == kNullType)
|
||||
return true;
|
||||
else if(want == kTrueType && have == kFalseType)
|
||||
return true;
|
||||
else if(want == kFalseType && have == kTrueType)
|
||||
|
||||
Reference in New Issue
Block a user