--- a/Shark.cpp Sun Dec 10 22:20:37 2023 +0100
+++ b/Shark.cpp Sun Dec 10 22:23:32 2023 +0100
@@ -33,6 +33,7 @@
#include "Shader.h"
#include "Program.h"
#include "FileMonitor.h"
+#include "XAttrs.h"
#include "Shark.h"
@@ -553,6 +554,8 @@
img(imageLoader.loadImage(MappedFile(tex.fileName)));
textures.push_back(std::make_shared<Texture>(
img->width, img->height, *img, tex.fileName));
+ // static const uint32_t watchMask = IN_CLOSE_WRITE | IN_ATTRIB;
+ // watchedFiles.push_back(fileMonitor.watch(tex.fileName, watchMask));
watchedFiles.push_back(fileMonitor.watch(tex.fileName));
// TODO: review texture loading and binding
// works even without this - default texture