Merge branch 'fix_ubsan_warnings' into 'master'

Fix ubsan warnings

See merge request OpenMW/openmw!3772
This commit is contained in:
psi29a 2024-01-19 08:29:23 +00:00
commit 6b9fd12ab7
3 changed files with 17 additions and 6 deletions

View file

@ -55,7 +55,7 @@ namespace fx
osg::ref_ptr<osg::Texture2D> mRenderTexture;
bool mResolve = false;
Types::SizeProxy mSize;
bool mMipMap;
bool mMipMap = false;
SubPass(const SubPass& other, const osg::CopyOp& copyOp = osg::CopyOp::SHALLOW_COPY)
: mStateSet(new osg::StateSet(*other.mStateSet, copyOp))