summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-02-28 14:13:06 -0500
committerpommicket <pommicket@gmail.com>2023-02-28 14:13:06 -0500
commit5e92dac7b8ff9d60bfa3dcc69c3f77663a01aea4 (patch)
treebfc1faa98f94930dbb6946fc0f0f8d249c5087bd
parent11300a7e247eeb28c101f43a51d8dbfde0479eaa (diff)
new settings system seems to be working
-rw-r--r--Makefile8
-rw-r--r--gl.c1
-rw-r--r--main.c2
3 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 63af6c6..718760d 100644
--- a/Makefile
+++ b/Makefile
@@ -11,10 +11,12 @@ LOCAL_DATA_DIR=/home/`logname`/.local/share/ted
INSTALL_BIN_DIR=/usr/bin
debug-build: ted compile_commands.json
ted: debug/ted
- @# note: doing cp would fail if `ted` is busy
- cat debug/ted > ted
+ @# note: needed so cp doesn't fail if `ted` is busy
+ rm -f ted
+ cp debug/ted .
compile_commands.json: debug/ted
- cat debug/compile_commands.json > compile_commands.json
+ rm -f compile_commands.json
+ cp debug/compile_commands.json .
debug/ted: *.[ch] libpcre2-32.a CMakeLists.txt
mkdir -p debug
cd debug && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug -GNinja ..
diff --git a/gl.c b/gl.c
index 07871d7..4b41f42 100644
--- a/gl.c
+++ b/gl.c
@@ -65,7 +65,6 @@ void gl_rc_texture_decref(GlRcTexture **pt) {
GlRcTexture *t = *pt;
if (!t) return;
if (--t->ref_count == 0) {
- debug_println("Delete texture %u", t->texture);
glDeleteTextures(1, &t->texture);
free(t);
}
diff --git a/main.c b/main.c
index b505377..f421ace 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,4 @@
/*
-@TODO:
-- test new settings system
FUTURE FEATURES:
- doxygen documentation for ted.h
- manual.md