Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/device_optix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/device_optix.cpp b/intern/cycles/device/device_optix.cpp
index 3162b72a0dc..831cd8c3148 100644
--- a/intern/cycles/device/device_optix.cpp
+++ b/intern/cycles/device/device_optix.cpp
@@ -1189,7 +1189,7 @@ class OptiXDevice : public Device {
size_t bytes = 0;
CUdeviceptr mem = 0;
check_result_cuda(cuModuleGetGlobal(&mem, &bytes, cuda_module, name));
- assert(mem != NULL && bytes == data_size);
+ assert(mem != 0 && bytes == data_size);
check_result_cuda(cuMemcpyHtoD(mem, data, data_size));
}