mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
NanoVG: Fixed #519 crash.
This commit is contained in:
parent
dc71df5ecc
commit
6e7de6f122
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ namespace
|
|||
uint32_t pitch = tex->width * bytesPerPixel;
|
||||
|
||||
bgfx::updateTexture2D(tex->id, 0, x, y, w, h
|
||||
, bgfx::makeRef(data + y*pitch + x*bytesPerPixel, h*pitch)
|
||||
, bgfx::copy(data + y*pitch + x*bytesPerPixel, h*pitch)
|
||||
, pitch
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue