mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -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