From 6e7de6f122911c211413b122ab9979a7c5544d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 2 Nov 2015 18:59:01 -0800 Subject: [PATCH] NanoVG: Fixed #519 crash. --- examples/common/nanovg/nanovg_bgfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );