X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresources.cpp;h=68b8fd5bdded8aa12489d7bda38c42a301e4c0f0;hb=d16abe533233dc15810fe6bdf4a873d36eefc5dc;hp=32709e30e2ebf521bd6bcf69eeb262069f517e4f;hpb=55dbeb5e04516699b8415104e346243d5e4c48c9;p=libs%2Fgl.git diff --git a/source/resources.cpp b/source/resources.cpp index 32709e30..68b8fd5b 100644 --- a/source/resources.cpp +++ b/source/resources.cpp @@ -88,8 +88,7 @@ Texture2D *Resources::create_texture2d(const string &name) RefPtr tex = new GL::Texture2D(resource_manager); - if(default_tex_filter==NEAREST_MIPMAP_NEAREST || default_tex_filter==NEAREST_MIPMAP_LINEAR || - default_tex_filter==LINEAR_MIPMAP_NEAREST || default_tex_filter==LINEAR_MIPMAP_LINEAR) + if(is_mipmapped(default_tex_filter)) { tex->set_generate_mipmap(true); tex->set_mag_filter(LINEAR);