Fix nvBuffer memory allocation failure

This commit is contained in:
Jules Blok 2018-05-23 17:51:39 +02:00 committed by fincs
parent de93886c56
commit cd85610ebb

View File

@ -52,7 +52,7 @@ static Result _nvBufferCreate(
m->has_init = true;
m->size = size;
m->fd = -1;
m->cpu_addr = memalign(size, align);
m->cpu_addr = memalign(align, size);
m->gpu_addr = 0;
m->gpu_addr_texture = 0;
m->addr_space = as;