Browse Source

Fixed gather after cleanup in 49bd00e.

Martijn Courteaux 6 years ago
parent
commit
6c6f43cff0
1 changed files with 5 additions and 1 deletions
  1. 5 1
      examples/common/nanovg/nanovg_bgfx.cpp

+ 5 - 1
examples/common/nanovg/nanovg_bgfx.cpp

@@ -370,7 +370,11 @@ namespace
 		uint32_t pitch = tex->width * bytesPerPixel;
 
 		const bgfx::Memory* mem = bgfx::alloc(w * h * bytesPerPixel);
-		bx::gather(mem->data, data + y * pitch + x * bytesPerPixel, w * bytesPerPixel, h, pitch);
+		bx::gather(mem->data,                            // dst
+		           data + y * pitch + x * bytesPerPixel, // src
+		           pitch,                                // srcStride
+		           w * bytesPerPixel,                    // stride
+		           h);                                   // num
 
 		bgfx::updateTexture2D(
 			  tex->id