]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texturecube.cpp
Use seamless cube map filtering if available
[libs/gl.git] / source / core / texturecube.cpp
index 1c6c4962e46a1a3eb4b0c8817beed3dcfb726b9f..01820fa8766be6afa5235419c5da9d63062a6388 100644 (file)
@@ -1,4 +1,5 @@
 #include <msp/datafile/collection.h>
+#include <msp/gl/extensions/arb_seamless_cube_map.h>
 #include <msp/gl/extensions/arb_texture_cube_map.h>
 #include <msp/gl/extensions/arb_texture_storage.h>
 #include <msp/io/memory.h>
@@ -49,6 +50,8 @@ TextureCube::TextureCube():
        allocated(0)
 {
        static Require _req(ARB_texture_cube_map);
+       if(ARB_seamless_cube_map)
+               glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS);
 }
 
 void TextureCube::storage(PixelFormat fmt, unsigned sz, unsigned lv)