glGenSamplers(1, &id);
}
+OpenGLSampler::~OpenGLSampler()
+{
+ if(id)
+ glDeleteSamplers(1, &id);
+}
+
bool OpenGLSampler::check_anisotropic(bool require)
{
if(require)
void OpenGLSampler::set_debug_name(const string &name)
{
#ifdef DEBUG
- if(id && KHR_debug)
+ if(KHR_debug)
glObjectLabel(GL_SAMPLER, id, name.size(), name.c_str());
#else
(void)name;