mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Fixed bad include path.
This commit is contained in:
parent
cf7b1542d2
commit
36e02361d1
1 changed files with 7 additions and 7 deletions
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include <bgfx.h>
|
#include <bgfx.h>
|
||||||
|
|
||||||
#include <bx\bx.h>
|
#include <bx/bx.h>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
@ -184,7 +184,7 @@ namespace
|
||||||
}
|
}
|
||||||
tex = &gl->textures[gl->ntextures++];
|
tex = &gl->textures[gl->ntextures++];
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(tex, 0, sizeof(*tex));
|
memset(tex, 0, sizeof(*tex));
|
||||||
|
|
||||||
return tex;
|
return tex;
|
||||||
|
@ -496,7 +496,7 @@ namespace
|
||||||
bgfx::setUniform(gl->u_params, &frag->feather);
|
bgfx::setUniform(gl->u_params, &frag->feather);
|
||||||
|
|
||||||
bgfx::TextureHandle handle = BGFX_INVALID_HANDLE;
|
bgfx::TextureHandle handle = BGFX_INVALID_HANDLE;
|
||||||
|
|
||||||
if (image != 0)
|
if (image != 0)
|
||||||
{
|
{
|
||||||
struct GLNVGtexture* tex = glnvg__findTexture(gl, image);
|
struct GLNVGtexture* tex = glnvg__findTexture(gl, image);
|
||||||
|
@ -689,14 +689,14 @@ namespace
|
||||||
if (gl->ncalls > 0)
|
if (gl->ncalls > 0)
|
||||||
{
|
{
|
||||||
bgfx::allocTransientVertexBuffer(&gl->tvb, gl->nverts, s_nvgDecl);
|
bgfx::allocTransientVertexBuffer(&gl->tvb, gl->nverts, s_nvgDecl);
|
||||||
|
|
||||||
int allocated = gl->tvb.size/gl->tvb.stride;
|
int allocated = gl->tvb.size/gl->tvb.stride;
|
||||||
|
|
||||||
if (allocated < gl->nverts) {
|
if (allocated < gl->nverts) {
|
||||||
gl->nverts = allocated;
|
gl->nverts = allocated;
|
||||||
BX_WARN(true, "Vertex number truncated due to transient vertex buffer overflow");
|
BX_WARN(true, "Vertex number truncated due to transient vertex buffer overflow");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
memcpy(gl->tvb.data, gl->verts, gl->nverts * sizeof(struct NVGvertex) );
|
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)
|
for (uint32_t ii = 0, num = gl->ntextures; ii < num; ++ii)
|
||||||
{
|
{
|
||||||
if (bgfx::isValid(gl->textures[ii].id)
|
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);
|
bgfx::destroyTexture(gl->textures[ii].id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue