From d547f4a59be9348e624400348874ee15584bdeb7 Mon Sep 17 00:00:00 2001
From: Jonathan Wendt <wendt@vr.rwth-aachen.de>
Date: Wed, 19 Dec 2018 16:09:55 +0100
Subject: [PATCH] remove the fix for a bug that disappeared, fixing monoscoping
 rendering

---
 .../Monoscopic/DisplayClusterDeviceMonoscopicOpenGL.cpp      | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Source/DisplayCluster/Private/Render/Devices/Monoscopic/DisplayClusterDeviceMonoscopicOpenGL.cpp b/Source/DisplayCluster/Private/Render/Devices/Monoscopic/DisplayClusterDeviceMonoscopicOpenGL.cpp
index 238d563..0b35d20 100644
--- a/Source/DisplayCluster/Private/Render/Devices/Monoscopic/DisplayClusterDeviceMonoscopicOpenGL.cpp
+++ b/Source/DisplayCluster/Private/Render/Devices/Monoscopic/DisplayClusterDeviceMonoscopicOpenGL.cpp
@@ -51,9 +51,8 @@ bool FDisplayClusterDeviceMonoscopicOpenGL::Present(int32& InOutSyncInterval)
 {
 	UE_LOG(LogDisplayClusterRender, Verbose, TEXT("FDisplayClusterDeviceQuadBufferStereoOpenGL::Present"));
 
-	const int halfSizeX = BackBuffSize.X / 2;
 	const int dstX1 = 0;
-	const int dstX2 = halfSizeX;
+	const int dstX2 = BackBuffSize.X;
 
 	// Convert to left bottom origin and flip Y
 	const int dstY1 = ViewportSize.Y;
@@ -76,7 +75,7 @@ bool FDisplayClusterDeviceMonoscopicOpenGL::Present(int32& InOutSyncInterval)
 	glReadBuffer(GL_COLOR_ATTACHMENT0);
 
 	glBlitFramebuffer(
-		0, 0, halfSizeX, BackBuffSize.Y,
+		0, 0, BackBuffSize.X, BackBuffSize.Y,
 		dstX1, dstY1, dstX2, dstY2,
 		GL_COLOR_BUFFER_BIT,
 		GL_NEAREST);
-- 
GitLab