From 75461f9f45c761da1d981069acbe48f79ee922f5 Mon Sep 17 00:00:00 2001 From: hgn Date: Sun, 28 May 2023 19:20:53 +0100 Subject: [PATCH] remove tinydir --- .gitmodules | 3 --- submodules/tinydir | 1 - vg_lines.h | 6 ++---- 3 files changed, 2 insertions(+), 8 deletions(-) delete mode 160000 submodules/tinydir diff --git a/.gitmodules b/.gitmodules index f1a6ff6..13a708d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,6 +10,3 @@ [submodule "submodules/SDL_GameControllerDB"] path = submodules/SDL_GameControllerDB url = https://github.com/gabomdq/SDL_GameControllerDB.git -[submodule "submodules/tinydir"] - path = submodules/tinydir - url = https://github.com/cxong/tinydir.git diff --git a/submodules/tinydir b/submodules/tinydir deleted file mode 160000 index 9f866c1..0000000 --- a/submodules/tinydir +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9f866c1ec09e62aa4df50d7209556ed705a4dd90 diff --git a/vg_lines.h b/vg_lines.h index 5c88d9b..7077e73 100644 --- a/vg_lines.h +++ b/vg_lines.h @@ -146,10 +146,8 @@ VG_STATIC void vg_lines_drawall( void ) VG_STATIC void vg_line2( line_co from, line_co to, u32 fc, u32 tc ) { - if( !vg_lines.allow_input ) - return; - - return; + if( !vg_lines.allow_input ) return; + if( !vg_lines.draw ) return; u32 size = 2 * sizeof(struct vg_lines_vert); struct vg_lines_vert *v = vg_linear_alloc( vg_lines.vertex_buffer, size ); -- 2.25.1