bgfx/examples/common/nanovg
Miha Lunar e5da24f490 Fix for crash when too many lines / vertices
When a lot of lines are being drawn, this can overflow the vertex buffer, causing a crash in `nvgRenderFlush`. While the underlying code handles this case in an okay manner (truncating the vertex buffer instead of crashing), the `nvgRenderFlush` code is missing a check for this case, causing it to think it has more space than was allocated.

I tried to fix it with multiple buffers as mentioned in #160, however it seems more complex than it appears. This fix just makes it truncate the output according to the actual allocated amount of bytes in the vertex buffer, so it doesn't crash at least.
2014-11-21 00:57:33 +01:00
..
fontstash.h Cleanup. 2014-11-17 21:35:53 -08:00
fs_nanovg_fill.bin.h Updated glsl-optimizer. 2014-10-11 12:32:43 -07:00
fs_nanovg_fill.sc Fixed half texel offset in NanoVG for DX9. 2014-04-29 19:52:42 -07:00
makefile Fixing paths. 2014-09-10 21:48:08 -07:00
nanovg.cpp Fixed GCC/Clang warnings. 2014-11-17 08:33:14 -08:00
nanovg.h Updated NanoVG and Blendish. 2014-11-16 18:59:17 -08:00
nanovg_bgfx.cpp Fix for crash when too many lines / vertices 2014-11-21 00:57:33 +01:00
varying.def.sc Added 20-nanovg example. 2014-04-26 23:50:11 -07:00
vs_nanovg_fill.bin.h Updated glsl-optimizer. 2014-10-11 12:32:43 -07:00
vs_nanovg_fill.sc Fixed half texel offset in NanoVG for DX9. 2014-04-29 19:52:42 -07:00