From 2a5e552fd0d47126114d306d13a75210de44138a Mon Sep 17 00:00:00 2001 From: Mads Buvik Sandvei Date: Sat, 28 Nov 2020 11:22:21 +0000 Subject: [PATCH] Openxr vr clang fixes --- apps/openmw/mwvr/vrviewer.cpp | 2 ++ apps/openmw/mwvr/vrviewer.hpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwvr/vrviewer.cpp b/apps/openmw/mwvr/vrviewer.cpp index 26aa879b7..ce527590f 100644 --- a/apps/openmw/mwvr/vrviewer.cpp +++ b/apps/openmw/mwvr/vrviewer.cpp @@ -41,6 +41,8 @@ namespace MWVR , mPostDraw(new PostdrawCallback(this)) , mVrShadow() , mConfigured(false) + , mMsaaResolveMirrorTexture{nullptr, nullptr} + , mMirrorTexture{ nullptr } { mViewer->setRealizeOperation(new RealizeOperation()); } diff --git a/apps/openmw/mwvr/vrviewer.hpp b/apps/openmw/mwvr/vrviewer.hpp index d414a16e6..06dbcc4d8 100644 --- a/apps/openmw/mwvr/vrviewer.hpp +++ b/apps/openmw/mwvr/vrviewer.hpp @@ -92,8 +92,8 @@ namespace MWVR osg::ref_ptr mPreDraw{ nullptr }; osg::ref_ptr mPostDraw{ nullptr }; osg::GraphicsContext* mMainCameraGC{ nullptr }; - std::unique_ptr mMsaaResolveMirrorTexture[2]{ }; - std::unique_ptr mMirrorTexture{ nullptr }; + std::unique_ptr mMsaaResolveMirrorTexture[2]; + std::unique_ptr mMirrorTexture; VrShadow mVrShadow; std::mutex mMutex{};