aboutsummaryrefslogtreecommitdiff
path: root/system/OpenglSystemCommon/HostConnection.cpp
diff options
context:
space:
mode:
authorLingfeng Yang <lfy@google.com>2020-09-10 19:55:47 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-09-10 19:55:47 +0000
commite96843b734bcd0e2f5ac1a06703e438a43fc7086 (patch)
tree9e03d0a906be65506141ab856cd728125a781d1d /system/OpenglSystemCommon/HostConnection.cpp
parent98188d9a9bc5803f1f78e2823f3d195c47a75266 (diff)
parented069c5944c3066ea1bbb3db65e4791a96b717b5 (diff)
downloadgoldfish-opengl-e96843b734bcd0e2f5ac1a06703e438a43fc7086.tar.gz
Merge "Move host validation to guest"
Diffstat (limited to 'system/OpenglSystemCommon/HostConnection.cpp')
-rw-r--r--system/OpenglSystemCommon/HostConnection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/OpenglSystemCommon/HostConnection.cpp b/system/OpenglSystemCommon/HostConnection.cpp
index 72632b9d..7d309fbd 100644
--- a/system/OpenglSystemCommon/HostConnection.cpp
+++ b/system/OpenglSystemCommon/HostConnection.cpp
@@ -357,7 +357,7 @@ HostConnection::HostConnection() :
m_checksumHelper(),
m_glExtensions(),
m_grallocOnly(true),
- m_noHostError(false),
+ m_noHostError(true),
m_rendernodeFd(-1),
m_rendernodeFdOwned(false) { }
@@ -807,8 +807,8 @@ void HostConnection::queryAndSetGLESMaxVersion(ExtendedRCEncoderContext* rcEnc)
void HostConnection::queryAndSetNoErrorState(ExtendedRCEncoderContext* rcEnc) {
std::string glExtensions = queryGLExtensions(rcEnc);
- if (glExtensions.find(kGLESNoHostError) != std::string::npos) {
- m_noHostError = true;
+ if (glExtensions.find(kGLESUseHostError) != std::string::npos) {
+ m_noHostError = false;
}
}