From 36e02361d1ed1f9ce5349fb80db1171dd12fdb77 Mon Sep 17 00:00:00 2001 From: Branimir Karadzic Date: Thu, 20 Nov 2014 16:51:14 -0800 Subject: [PATCH] Fixed bad include path. --- examples/common/nanovg/nanovg_bgfx.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/common/nanovg/nanovg_bgfx.cpp b/examples/common/nanovg/nanovg_bgfx.cpp index 506b6d27..722e1f03 100644 --- a/examples/common/nanovg/nanovg_bgfx.cpp +++ b/examples/common/nanovg/nanovg_bgfx.cpp @@ -30,7 +30,7 @@ #include -#include +#include namespace { @@ -184,7 +184,7 @@ namespace } tex = &gl->textures[gl->ntextures++]; } - + memset(tex, 0, sizeof(*tex)); return tex; @@ -496,7 +496,7 @@ namespace bgfx::setUniform(gl->u_params, &frag->feather); bgfx::TextureHandle handle = BGFX_INVALID_HANDLE; - + if (image != 0) { struct GLNVGtexture* tex = glnvg__findTexture(gl, image); @@ -689,14 +689,14 @@ namespace if (gl->ncalls > 0) { bgfx::allocTransientVertexBuffer(&gl->tvb, gl->nverts, s_nvgDecl); - + int allocated = gl->tvb.size/gl->tvb.stride; - + if (allocated < gl->nverts) { gl->nverts = allocated; BX_WARN(true, "Vertex number truncated due to transient vertex buffer overflow"); } - + memcpy(gl->tvb.data, gl->verts, gl->nverts * sizeof(struct NVGvertex) ); @@ -996,7 +996,7 @@ namespace for (uint32_t ii = 0, num = gl->ntextures; ii < num; ++ii) { if (bgfx::isValid(gl->textures[ii].id) - && (gl->textures[ii].flags & NVG_IMAGE_NODELETE) == 0) + && (gl->textures[ii].flags & NVG_IMAGE_NODELETE) == 0) { bgfx::destroyTexture(gl->textures[ii].id); }