gs-mipmapper: Textures with no mip level do not exist

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2018-09-28 21:21:24 +02:00
parent f78be9c387
commit 6e03f2334d

View file

@ -199,7 +199,7 @@ void gs::mipmapper::rebuild(std::shared_ptr<gs::texture> 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;
}