Feature: IgnoreHostOpenGLErrors
bug: 71853717
If you use the emulator and the UI works fine, do this to make the UI
faster.
Change-Id: I044a46956eadb17021d6cf2c7b87c6423a328051
diff --git a/system/GLESv2_enc/GL2Encoder.cpp b/system/GLESv2_enc/GL2Encoder.cpp
index 0e72478..a7ff5c1 100755
--- a/system/GLESv2_enc/GL2Encoder.cpp
+++ b/system/GLESv2_enc/GL2Encoder.cpp
@@ -73,6 +73,7 @@
m_currMajorVersion = 2;
m_currMinorVersion = 0;
m_initialized = false;
+ m_noHostError = false;
m_state = NULL;
m_error = GL_NO_ERROR;
m_num_compressedTextureFormats = 0;
@@ -365,7 +366,11 @@
return err;
}
- return ctx->m_glGetError_enc(self);
+ if (ctx->m_noHostError) {
+ return GL_NO_ERROR;
+ } else {
+ return ctx->m_glGetError_enc(self);
+ }
}
class GL2Encoder::ErrorUpdater {