summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorbohu <bohu@google.com>2014-11-17 16:28:42 -0800
committerbohu <bohu@google.com>2014-11-18 11:49:42 -0800
commit2c71ccd486a5c80a2ea159ce5ef3e62806471115 (patch)
treef8f9d1de5db56a678045e0801e082a0d41f6fd77 /opengl
parent6aedefacbd932dd340d0f7e96b6f6aff2aba4558 (diff)
downloadandroid_device_generic_goldfish-2c71ccd486a5c80a2ea159ce5ef3e62806471115.tar.gz
android_device_generic_goldfish-2c71ccd486a5c80a2ea159ce5ef3e62806471115.tar.bz2
android_device_generic_goldfish-2c71ccd486a5c80a2ea159ce5ef3e62806471115.zip
handles glGetBooleanv when value is nonboolean
Properly converts non-zero value to GL_TRUE. Change-Id: I9ca1d42d9b36ae9ce0a01cf6a358d9fe59a02558
Diffstat (limited to 'opengl')
-rw-r--r--opengl/system/GLESv2_enc/GL2Encoder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/opengl/system/GLESv2_enc/GL2Encoder.cpp b/opengl/system/GLESv2_enc/GL2Encoder.cpp
index 20e4063..0575935 100644
--- a/opengl/system/GLESv2_enc/GL2Encoder.cpp
+++ b/opengl/system/GLESv2_enc/GL2Encoder.cpp
@@ -363,6 +363,7 @@ void GL2Encoder::s_glGetBooleanv(void *self, GLenum param, GLboolean *ptr)
if (!ctx->m_state->getClientStateParameter<GLboolean>(param, ptr)) {
ctx->m_glGetBooleanv_enc(self, param, ptr);
}
+ *ptr = (*ptr != 0) ? GL_TRUE : GL_FALSE;
break;
}
}