mirror of https://github.com/Xaymar/obs-StreamFX
gs-mipmapper: Textures with no mip level do not exist
This commit is contained in:
parent
f78be9c387
commit
6e03f2334d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue