mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed gather after cleanup in 49bd00e.
This commit is contained in:
committed by
Бранимир Караџић
parent
b2c77c1108
commit
6c6f43cff0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user