Fixed bad include path.

This commit is contained in:
Branimir Karadzic 2014-11-20 16:51:14 -08:00
parent cf7b1542d2
commit 36e02361d1

View file

@ -30,7 +30,7 @@
#include <bgfx.h>
#include <bx\bx.h>
#include <bx/bx.h>
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);
}