From: Mikko Rasa Date: Sat, 24 Apr 2021 21:32:45 +0000 (+0300) Subject: Use seamless cube map filtering if available X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9e9216405fb999a1a6c4f8865264f4e7e335e7aa;p=libs%2Fgl.git Use seamless cube map filtering if available --- diff --git a/extensions/arb_seamless_cube_map.glext b/extensions/arb_seamless_cube_map.glext new file mode 100644 index 00000000..60f43c5d --- /dev/null +++ b/extensions/arb_seamless_cube_map.glext @@ -0,0 +1,4 @@ +extension ARB_seamless_cube_map +# AMD_seamless_cubemap_per_texture contains the same enum but has orthogonal +# semantics +source none diff --git a/source/core/texturecube.cpp b/source/core/texturecube.cpp index 1c6c4962..01820fa8 100644 --- a/source/core/texturecube.cpp +++ b/source/core/texturecube.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -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)