mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 15:09:43 +00:00
Add a missing assertion
This commit is contained in:
parent
f8c1d48c0b
commit
98b281e4ad
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue