These are fairly old extensions and can be assumed to be always
available.
dirty_params(0)
{
Require _req(ARB_sampler_objects);
+ Require _req2(EXT_texture3D);
+ Require _req3(ARB_shadow);
if(ARB_direct_state_access)
glCreateSamplers(1, &id);
else
{
set_wrap_s(w);
set_wrap_t(w);
- if(EXT_texture3D)
- set_wrap_r(w);
+ set_wrap_r(w);
}
void Sampler::set_wrap_s(TextureWrap w)
void Sampler::set_wrap_r(TextureWrap w)
{
- static Require _req(EXT_texture3D);
wrap_r = w;
dirty_params |= WRAP_R;
}
void Sampler::set_compare(Predicate f)
{
- static Require _req(ARB_shadow);
compare = true;
cmp_func = f;
dirty_params |= COMPARE;