bgfx/examples
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
..
00-helloworld Cleanup. 2014-05-03 15:18:28 -07:00
01-cubes Cleanup. 2014-11-02 00:24:58 -07:00
02-metaballs Added HMD recenter support. Updated examples to support HMD. 2014-11-02 00:06:18 -07:00
03-raymarch Added custom mtxProj() call to properly handle OGL NDC. 2014-10-06 07:25:33 +02:00
04-mesh Added HMD recenter support. Updated examples to support HMD. 2014-11-02 00:06:18 -07:00
05-instancing Added HMD recenter support. Updated examples to support HMD. 2014-11-02 00:06:18 -07:00
06-bump Added HMD recenter support. Updated examples to support HMD. 2014-11-02 00:06:18 -07:00
07-callback Fixed OSX entry. 2014-09-19 10:33:13 -07:00
08-update Fixed comments. 2014-10-05 00:18:07 -07:00
09-hdr Fixed typo. 2014-11-09 11:55:45 -08:00
10-font Updated to OVR 0.4.3. Added support for event char to read keyboard text input. 2014-11-08 20:57:47 -08:00
11-fontsdf Fixed compile error. 2014-11-08 22:09:31 -08:00
12-lod Added HMD recenter support. Updated examples to support HMD. 2014-11-02 00:06:18 -07:00
13-stencil Fixed compile errors. Added default part of view debug name. Added example how to use view debug name. 2014-10-25 18:07:51 -07:00
14-shadowvolumes Added HMD recenter support. Updated examples to support HMD. 2014-11-02 00:06:18 -07:00
15-shadowmaps-simple Fixed compile errors. Added default part of view debug name. Added example how to use view debug name. 2014-10-25 18:07:51 -07:00
16-shadowmaps Fixed compile errors. Added default part of view debug name. Added example how to use view debug name. 2014-10-25 18:07:51 -07:00
17-drawstress Updated glsl-optimizer. 2014-10-11 12:32:43 -07:00
18-ibl Fixed compile errors. Added default part of view debug name. Added example how to use view debug name. 2014-10-25 18:07:51 -07:00
19-oit Fixed compile errors. Added default part of view debug name. Added example how to use view debug name. 2014-10-25 18:07:51 -07:00
20-nanovg Fixed GCC/Clang warnings. 2014-11-17 08:33:14 -08:00
21-deferred Fixed compile errors. Added default part of view debug name. Added example how to use view debug name. 2014-10-25 18:07:51 -07:00
22-windows x11: Post size event when initializing window. 2014-09-24 21:05:48 -07:00
23-vectordisplay Cleanup. 2014-11-17 21:35:53 -08:00
assets/meshes Fixing paths. 2014-09-10 21:48:08 -07:00
common Fix for crash when too many lines / vertices 2014-11-21 00:57:33 +01:00
runtime Added 23-vectordisplay shaders and screenshot. 2014-11-15 17:00:51 -08:00
makefile Added 23-vectordisplay shaders and screenshot. 2014-11-15 17:00:51 -08:00