Initialize the anisotropy parameter and don't try to set it unless the
extension is supported.
ifmt(RGB),
min_filter(NEAREST_MIPMAP_LINEAR),
mag_filter(LINEAR),
+ max_anisotropy(1.0f),
wrap_s(REPEAT),
wrap_t(REPEAT),
wrap_r(REPEAT),
else if(a>1.0f)
static Require _req(EXT_texture_filter_anisotropic);
max_anisotropy = a;
- update_parameter(MAX_ANISOTROPY);
+ if(EXT_texture_filter_anisotropic)
+ update_parameter(MAX_ANISOTROPY);
}
void Texture::set_wrap(TextureWrap w)