Fix CUDA MEMCPY condition, it should only copy 3D, 2D or 1D.
Found by Brecht, thanks!
This commit is contained in:
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
|
@ -562,7 +562,7 @@ public:
|
|||
|
||||
cuda_assert(cuMemcpy3D(¶m));
|
||||
}
|
||||
if(mem.data_height > 1) {
|
||||
else if(mem.data_height > 1) {
|
||||
CUDA_MEMCPY2D param;
|
||||
memset(¶m, 0, sizeof(param));
|
||||
param.dstMemoryType = CU_MEMORYTYPE_ARRAY;
|
||||
|
|
Loading…
Reference in New Issue