Fix CUDA MEMCPY condition, it should only copy 3D, 2D or 1D.

Found by Brecht, thanks!
This commit is contained in:
Thomas Dinges 2016-05-17 00:37:34 +02:00
parent 99d861169f
commit 29a17d54da
Notes: blender-bot 2023-02-14 07:53:48 +01:00
Referenced by issue #48456, OSX retina - image paint brush paints 2x wider than brush setting, cant paint 1px
Referenced by issue #48424, Smoke simulation is broken
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ public:
cuda_assert(cuMemcpy3D(&param));
}
if(mem.data_height > 1) {
else if(mem.data_height > 1) {
CUDA_MEMCPY2D param;
memset(&param, 0, sizeof(param));
param.dstMemoryType = CU_MEMORYTYPE_ARRAY;