[deqp] Fix state_query.string
bug: 34245902
Version string needs to match the glGetIntegerv(GL_MINOR_VERSION, ...).
Change-Id: I8b51104b0347c12c93c350dda7fb03c145f8c3e2
diff --git a/system/GLESv2_enc/GL2Encoder.cpp b/system/GLESv2_enc/GL2Encoder.cpp
index daa972f..66b9e19 100755
--- a/system/GLESv2_enc/GL2Encoder.cpp
+++ b/system/GLESv2_enc/GL2Encoder.cpp
@@ -528,10 +528,10 @@
switch (param) {
case GL_MAJOR_VERSION:
- *ptr = ctx->m_currMajorVersion;
+ *ptr = ctx->m_deviceMajorVersion;
break;
case GL_MINOR_VERSION:
- *ptr = ctx->m_currMinorVersion;
+ *ptr = ctx->m_deviceMinorVersion;
break;
case GL_NUM_SHADER_BINARY_FORMATS:
*ptr = 0;