From: Mikko Rasa Date: Sat, 18 Sep 2021 11:54:48 +0000 (+0300) Subject: Only enable seamless cube map once X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=cf1676a405c2a81413fd565bc83331b7a8778eb5;p=libs%2Fgl.git Only enable seamless cube map once --- diff --git a/source/core/texturecube.cpp b/source/core/texturecube.cpp index 5ee772ca..460c109e 100644 --- a/source/core/texturecube.cpp +++ b/source/core/texturecube.cpp @@ -49,7 +49,14 @@ TextureCube::TextureCube(): { static Require _req(ARB_texture_cube_map); if(ARB_seamless_cube_map) - glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS); + { + static bool seamless_init = false; + if(!seamless_init) + { + glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS); + seamless_init = true; + } + } } void TextureCube::storage(PixelFormat fmt, unsigned sz, unsigned lv)