X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture.cpp;h=fb409e895c7fc3a0d221ee829648024462d76a55;hp=1d2ece8074410ded753c621f4c4dd43418e2694d;hb=4cb33c263a00787a57531dfc41a4128bf34d7bee;hpb=9f5f027d1c93e541a12b8e4c04bd25b11edbe132 diff --git a/source/texture.cpp b/source/texture.cpp index 1d2ece80..fb409e89 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -63,6 +63,7 @@ Texture::Texture(GLenum t, ResourceManager *m): ifmt(RGB), min_filter(NEAREST_MIPMAP_LINEAR), mag_filter(LINEAR), + max_anisotropy(1.0f), wrap_s(REPEAT), wrap_t(REPEAT), wrap_r(REPEAT), @@ -220,7 +221,8 @@ void Texture::set_max_anisotropy(float a) 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)