]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources.cpp
Use explicit mipmap generation if necessary
[libs/gl.git] / source / resources.cpp
index 2fd6950370df6580fe08cdf54139bef9b6d50316..afb84b27ae8689612ea068a9289cbb61a92910b6 100644 (file)
@@ -1,4 +1,5 @@
 #include <msp/fs/utils.h>
+#include <msp/gl/extensions/sgis_generate_mipmap.h>
 #include "animation.h"
 #include "armature.h"
 #include "font.h"
@@ -20,7 +21,7 @@ namespace Msp {
 namespace GL {
 
 Resources::Resources():
-       default_tex_filter(LINEAR_MIPMAP_LINEAR),
+       default_tex_filter(SGIS_generate_mipmap ? LINEAR_MIPMAP_LINEAR : LINEAR),
        srgb_conversion(false),
        resource_manager(0)
 {