Add a missing assertion

ini_importer_tests
Andrei Kortunov 12 months ago
parent f8c1d48c0b
commit 98b281e4ad

@ -288,6 +288,8 @@ namespace MWRender
pass.mRenderTarget->getAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER0)
.getTexture()));
assert(texture != nullptr);
texture->setTextureSize(w, h);
texture->setNumMipmapLevels(pass.mRenderTexture->getNumMipmapLevels());
texture->dirtyTextureObject();

Loading…
Cancel
Save