diff --git a/source/obs/gs/gs-texture.cpp b/source/obs/gs/gs-texture.cpp index a49d6a1c..a61ae512 100644 --- a/source/obs/gs/gs-texture.cpp +++ b/source/obs/gs/gs-texture.cpp @@ -26,10 +26,14 @@ static uint32_t decode_flags(gs::texture::flags texture_flags) { uint32_t flags = 0; - if (exact(texture_flags, gs::texture::flags::Dynamic)) + if (has(texture_flags, gs::texture::flags::Dynamic)) flags |= GS_DYNAMIC; - if (exact(texture_flags, gs::texture::flags::BuildMipMaps)) + if (has(texture_flags, gs::texture::flags::BuildMipMaps)) flags |= GS_BUILD_MIPMAPS; + if (has(texture_flags, gs::texture::flags::Shared)) + flags |= GS_SHARED_TEX; + if (has(texture_flags, gs::texture::flags::GlobalShared)) + flags |= GS_SHARED_KM_TEX; return flags; } diff --git a/source/obs/gs/gs-texture.hpp b/source/obs/gs/gs-texture.hpp index dd93fb15..2364c241 100644 --- a/source/obs/gs/gs-texture.hpp +++ b/source/obs/gs/gs-texture.hpp @@ -29,6 +29,8 @@ namespace gs { None, Dynamic, BuildMipMaps, + Shared, + GlobalShared, }; protected: