aboutsummaryrefslogtreecommitdiff
path: root/system/OpenglSystemCommon/HostConnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'system/OpenglSystemCommon/HostConnection.cpp')
-rw-r--r--system/OpenglSystemCommon/HostConnection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/OpenglSystemCommon/HostConnection.cpp b/system/OpenglSystemCommon/HostConnection.cpp
index ac7ef15a..9d41be4a 100644
--- a/system/OpenglSystemCommon/HostConnection.cpp
+++ b/system/OpenglSystemCommon/HostConnection.cpp
@@ -745,7 +745,8 @@ ExtendedRCEncoderContext *HostConnection::rcEncoder()
queryAndSetHWCMultiConfigs(rcEnc);
queryVersion(rcEnc);
if (m_processPipe) {
- m_processPipe->processPipeInit(m_rendernodeFd, m_connectionType, rcEnc);
+ auto fd = (m_connectionType == HOST_CONNECTION_VIRTIO_GPU_ADDRESS_SPACE) ? m_rendernodeFd : -1;
+ m_processPipe->processPipeInit(fd, m_connectionType, rcEnc);
}
}
return m_rcEnc.get();