NanoVG: Fixed #519 crash.

This commit is contained in:
Branimir Karadžić 2015-11-02 18:59:01 -08:00
parent dc71df5ecc
commit 6e7de6f122

View file

@ -349,7 +349,7 @@ namespace
uint32_t pitch = tex->width * bytesPerPixel; uint32_t pitch = tex->width * bytesPerPixel;
bgfx::updateTexture2D(tex->id, 0, x, y, w, h 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 , pitch
); );