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
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ void gs::mipmapper::rebuild(std::shared_ptr<gs::texture> source, std::shared_ptr
target_t2->GetDesc(&target_t2desc); target_t2->GetDesc(&target_t2desc);
// If we do not have any miplevels, just stop now. // If we do not have any miplevels, just stop now.
if (target_t2desc.MipLevels == 0) { if (target_t2desc.MipLevels == 1) {
obs_leave_graphics(); obs_leave_graphics();
return; return;
} }