[Piglit] [PATCH 1/4] Fix piglit_is_gles to return true for "OpenGL ES-CM 1.1 ..."
Josh Triplett
josh at joshtriplett.org
Wed Jul 2 17:27:18 PDT 2014
Piglit looked for a GL_VERSION starting with "OpenGL ES ", which did not
match "OpenGL ES-CM 1.1 Mesa 10.2.1". Stop requiring the trailing
space.
Signed-off-by: Josh Triplett <josh at joshtriplett.org>
---
tests/util/piglit-util-gl-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/util/piglit-util-gl-common.c b/tests/util/piglit-util-gl-common.c
index 4abbd57..609f6a9 100644
--- a/tests/util/piglit-util-gl-common.c
+++ b/tests/util/piglit-util-gl-common.c
@@ -40,7 +40,7 @@ bool piglit_is_core_profile;
bool piglit_is_gles(void)
{
const char *version_string = (const char *) glGetString(GL_VERSION);
- return strncmp("OpenGL ES ", version_string, 10) == 0;
+ return strncmp("OpenGL ES", version_string, 9) == 0;
}
int piglit_get_gl_version(void)
--
2.0.1
More information about the Piglit
mailing list