summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-10-31 18:24:07 +0000
committerPhil Jones <philj56@gmail.com>2021-10-31 19:31:08 +0000
commit7297ac5d9cac676ed6cd4552a6b47204f9db2512 (patch)
treeb3ebd6dd0a0ff1b5a1c2ad7ef0ebc87e28f470bd
parent8db0dbf823bccb2bc2ea3caee400916891b37948 (diff)
Include shaders in install.
-rw-r--r--meson.build5
-rw-r--r--src/image.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 27c8144..e1b1a38 100644
--- a/meson.build
+++ b/meson.build
@@ -31,6 +31,11 @@ shader_location = join_paths(
''
)
+install_subdir(
+ 'shaders',
+ install_dir: data_location
+)
+
add_project_arguments(
[
'-pedantic',
diff --git a/src/image.c b/src/image.c
index e05353c..5e8c511 100644
--- a/src/image.c
+++ b/src/image.c
@@ -11,6 +11,7 @@
void image_load(struct image *image, const char *filename)
{
+ log_debug("Loading image %s\n", filename);
FILE *fp = fopen(filename, "rb");
uint8_t header[HEADER_BYTES];
if (!fp) {
@@ -91,4 +92,5 @@ void image_load(struct image *image, const char *filename)
image->width = width;
image->height = height;
image->buffer = buffer;
+ log_debug("Image loaded.\n");
}