struct
{
- u32 draw;
+ u32 draw,
+ allow_input;
struct vg_lines_vert
{
}
vg_release_thread_sync();
+ vg_lines.allow_input = 1;
}
VG_STATIC void vg_lines_drawall( float* projection )
VG_STATIC void vg_line2( line_co from, line_co to, u32 fc, u32 tc )
{
+ if( !vg_lines.allow_input )
+ return;
+
u32 size = 2 * sizeof(struct vg_lines_vert);
struct vg_lines_vert *v = vg_linear_alloc( vg_lines.vertex_buffer, size );