[Bf-blender-cvs] [5ba51de84a] master: Cycles: Cleanup, indentation

Sergey Sharybin noreply at git.blender.org
Tue Mar 14 16:54:30 CET 2017


Commit: 5ba51de84a2dfaf8ed25e691d28e512ae20e577c
Author: Sergey Sharybin
Date:   Tue Mar 14 16:54:16 2017 +0100
Branches: master
https://developer.blender.org/rB5ba51de84a2dfaf8ed25e691d28e512ae20e577c

Cycles: Cleanup, indentation

===================================================================

M	intern/cycles/device/opencl/opencl_util.cpp

===================================================================

diff --git a/intern/cycles/device/opencl/opencl_util.cpp b/intern/cycles/device/opencl/opencl_util.cpp
index e2d0ff7178..a689c7eae2 100644
--- a/intern/cycles/device/opencl/opencl_util.cpp
+++ b/intern/cycles/device/opencl/opencl_util.cpp
@@ -356,10 +356,10 @@ bool OpenCLDeviceBase::OpenCLProgram::compile_kernel(const string *debug_src)
 	cl_int ciErr;
 
 	program = clCreateProgramWithSource(device->cxContext,
-	                                   1,
-	                                   &source_str,
-	                                   &source_len,
-	                                   &ciErr);
+	                                    1,
+	                                    &source_str,
+	                                    &source_len,
+	                                    &ciErr);
 
 	if(ciErr != CL_SUCCESS) {
 		add_error(string("OpenCL program creation failed: ") + clewErrorString(ciErr));
@@ -761,10 +761,10 @@ void OpenCLInfo::get_usable_devices(vector<OpenCLPlatformDevice> *usable_devices
 		num_devices = 0;
 		cl_int ciErr;
 		if((ciErr = clGetDeviceIDs(platform_id,
-		                  device_type,
-		                  0,
-		                  NULL,
-		                  &num_devices)) != CL_SUCCESS || num_devices == 0)
+		                           device_type,
+		                           0,
+		                           NULL,
+		                           &num_devices)) != CL_SUCCESS || num_devices == 0)
 		{
 			FIRST_VLOG(2) << "Ignoring platform " << platform_name
 			              << ", failed to fetch number of devices: " << string(clewErrorString(ciErr));




More information about the Bf-blender-cvs mailing list