Browse Source

NanoVG: Fixed #519 crash.

Branimir Karadžić 10 years ago
parent
commit
6e7de6f122
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/common/nanovg/nanovg_bgfx.cpp

+ 1 - 1
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
 				);