#include <msp/gl/extensions/arb_shadow.h>
#include <msp/gl/extensions/ext_texture_filter_anisotropic.h>
#include <msp/gl/extensions/ext_texture3d.h>
+#include <msp/gl/extensions/khr_debug.h>
#include <msp/strings/format.h>
#include "error.h"
#include "sampler.h"
}
}
+void Sampler::set_debug_name(const string &name)
+{
+#ifdef DEBUG
+ if(id && KHR_debug)
+ glObjectLabel(GL_SAMPLER, id, name.size(), name.c_str());
+#else
+ (void)name;
+#endif
+}
+
Sampler::Loader::Loader(Sampler &s):
DataFile::ObjectLoader<Sampler>(s)