Browse Source

Merge branch 'bugfix_cl_ope' into bfgminer

Luke Dashjr 13 years ago
parent
commit
4f5ba543e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ocl.c

+ 1 - 1
ocl.c

@@ -295,7 +295,7 @@ int clDevicesNum(void) {
 		status = clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 0, NULL, &numDevices);
 		if (status != CL_SUCCESS) {
 			applog(LOG_ERR, "Error %d: Getting Device IDs (num)", status);
-			if (i < numPlatforms - 1)
+			if (i != opt_platform_id)
 				continue;
 			return -1;
 		}