diff --git a/examples/common/nanovg/nanovg_bgfx.cpp b/examples/common/nanovg/nanovg_bgfx.cpp index 5891dc54..1f6eeeb1 100644 --- a/examples/common/nanovg/nanovg_bgfx.cpp +++ b/examples/common/nanovg/nanovg_bgfx.cpp @@ -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 );