bgfx/examples/common
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
..
entry Updated NanoVG and Blendish. 2014-11-16 18:59:17 -08:00
font Updated NanoVG and Blendish. 2014-11-16 18:59:17 -08:00
imgui Fixed clang warning. 2014-11-19 21:07:32 -08:00
nanovg Fix for crash when too many lines / vertices 2014-11-21 00:57:33 +01:00
aviwriter.h Cleanup. 2014-05-03 15:18:28 -07:00
bgfx_utils.cpp Fixed clang build. 2014-10-17 09:45:45 -07:00
bgfx_utils.h Cleanup. 2014-05-20 21:15:48 -07:00
bounds.cpp Removed _USE_MATH_DEFINES. 2014-10-23 21:10:44 -07:00
bounds.h Added AABB overlap test. 2014-05-26 16:55:46 -07:00
camera.cpp Removed _USE_MATH_DEFINES. 2014-10-23 21:10:44 -07:00
camera.h Cleanup. 2014-04-16 19:51:25 -07:00
common.h Moved fpumath to bx. 2014-05-26 19:31:37 -07:00
common.sh Updated copyright year. 2014-02-10 22:07:04 -08:00
cube_atlas.cpp Added ability to specify arbitrary source pitch when uploading textures. 2013-11-07 23:00:53 -08:00
cube_atlas.h Fixed C4244 warnings. 2014-01-20 22:07:08 -08:00
packrect.h Updated copyright year. 2014-02-10 22:07:04 -08:00
shaderlib.sh Rebuilt shaders. 2014-08-11 20:36:42 -07:00