mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 16:20:21 +00:00
Add a missing assertion
This commit is contained in:
parent
f8c1d48c0b
commit
98b281e4ad
@ -288,6 +288,8 @@ namespace MWRender
|
|||||||
pass.mRenderTarget->getAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER0)
|
pass.mRenderTarget->getAttachment(osg::FrameBufferObject::BufferComponent::COLOR_BUFFER0)
|
||||||
.getTexture()));
|
.getTexture()));
|
||||||
|
|
||||||
|
assert(texture != nullptr);
|
||||||
|
|
||||||
texture->setTextureSize(w, h);
|
texture->setTextureSize(w, h);
|
||||||
texture->setNumMipmapLevels(pass.mRenderTexture->getNumMipmapLevels());
|
texture->setNumMipmapLevels(pass.mRenderTexture->getNumMipmapLevels());
|
||||||
texture->dirtyTextureObject();
|
texture->dirtyTextureObject();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user