From 6e03f2334d41e8f0398f47d2818cea2ea82bd08e Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Fri, 28 Sep 2018 21:21:24 +0200 Subject: [PATCH] gs-mipmapper: Textures with no mip level do not exist --- source/gs-mipmapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gs-mipmapper.cpp b/source/gs-mipmapper.cpp index da551390..59ad7525 100644 --- a/source/gs-mipmapper.cpp +++ b/source/gs-mipmapper.cpp @@ -199,7 +199,7 @@ void gs::mipmapper::rebuild(std::shared_ptr source, std::shared_ptr target_t2->GetDesc(&target_t2desc); // If we do not have any miplevels, just stop now. - if (target_t2desc.MipLevels == 0) { + if (target_t2desc.MipLevels == 1) { obs_leave_graphics(); return; }