diff --git a/Common/GPU/OpenGL/GLQueueRunner.cpp b/Common/GPU/OpenGL/GLQueueRunner.cpp index f17708b2d5..4e7ffd480b 100644 --- a/Common/GPU/OpenGL/GLQueueRunner.cpp +++ b/Common/GPU/OpenGL/GLQueueRunner.cpp @@ -711,9 +711,8 @@ void GLQueueRunner::RunSteps(const std::vector &steps, GLFrameData &f case GLRStepType::RENDER: renderCount++; if (IsVREnabled()) { - GLRStep &vrStep = step; - PreprocessStepVR(&vrStep); - PerformRenderPass(vrStep, renderCount == 1, renderCount == totalRenderCount, frameData.profile); + PreprocessStepVR(&step); + PerformRenderPass(step, renderCount == 1, renderCount == totalRenderCount, frameData.profile); } else { PerformRenderPass(step, renderCount == 1, renderCount == totalRenderCount, frameData.profile); } diff --git a/Common/VR/PPSSPPVR.cpp b/Common/VR/PPSSPPVR.cpp index f4a4000a17..3bb94f2f4b 100644 --- a/Common/VR/PPSSPPVR.cpp +++ b/Common/VR/PPSSPPVR.cpp @@ -561,10 +561,14 @@ void PreprocessSkyplane(GLRStep* step) { // Clear sky with the fog color. if (!vrCompat[VR_COMPAT_FBO_CLEAR]) { GLRRenderData &skyClear = step->commands.insert(step->commands.begin()); - skyClear.cmd = GLRRenderCommand::CLEAR; // intentional zero-initialize + skyClear.cmd = GLRRenderCommand::CLEAR; skyClear.clear.colorMask = 0xF; - skyClear.clear.clearMask = GL_COLOR_BUFFER_BIT; + skyClear.clear.clearMask = GL_COLOR_BUFFER_BIT; // don't need to initialize clearZ, clearStencil skyClear.clear.clearColor = vrCompat[VR_COMPAT_FOG_COLOR]; + skyClear.clear.scissorX = 0; + skyClear.clear.scissorY = 0; + skyClear.clear.scissorW = 0; // signal no scissor + skyClear.clear.scissorH = 0; vrCompat[VR_COMPAT_FBO_CLEAR] = true; }