Fix build (part 2)
Change-Id: I319c1bfcffdccb5cef3d781e1a0cd21d4e8caf1b
diff --git a/system/GLESv2_enc/GL2Encoder.cpp b/system/GLESv2_enc/GL2Encoder.cpp
index 881e1d4..e4fdde8 100755
--- a/system/GLESv2_enc/GL2Encoder.cpp
+++ b/system/GLESv2_enc/GL2Encoder.cpp
@@ -59,6 +59,10 @@
m_max_textureSize = 0;
m_compressedTextureFormats = NULL;
+ m_drawCallFlushCount = 0;
+ m_primitiveRestartEnabled = false;
+ m_primitiveRestartIndex = 0;
+
//overrides
#define OVERRIDE(name) m_##name##_enc = this-> name ; this-> name = &s_##name
diff --git a/system/GLESv2_enc/GL2Encoder.h b/system/GLESv2_enc/GL2Encoder.h
index 5ac9711..1f82a8d 100644
--- a/system/GLESv2_enc/GL2Encoder.h
+++ b/system/GLESv2_enc/GL2Encoder.h
@@ -65,8 +65,8 @@
int m_drawCallFlushCount;
// GLES 3 features. Disabled for now.
- bool m_primitiveRestartEnabled = false;
- GLuint m_primitiveRestartIndex = 0;
+ bool m_primitiveRestartEnabled;
+ GLuint m_primitiveRestartIndex;
void calcIndexRange(const void* indices,
GLenum type, GLsizei count,