Permalink
Browse files

gles: fix GLES version string matching

Some implementations return a version string starting with "OpenGL ES-",
fix the detection logic accordingly.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
  • Loading branch information...
ideak authored and jrfonseca committed Apr 9, 2012
1 parent fe806cb commit ad60fd108d331796173ad54356855d9a2d0d87ba
Showing with 1 addition and 1 deletion.
  1. +1 −1 glstate.cpp
View
@@ -54,7 +54,7 @@ Context::Context(void) {
version[6] == ' ' &&
version[7] == 'E' &&
version[8] == 'S' &&
- version[9] == ' ') {
+ (version[9] == ' ' || version[9] == '-')) {
ES = true;
}
}

0 comments on commit ad60fd1

Please sign in to comment.