Skip to content

Commit

Permalink
gles: fix GLES version string matching
Browse files Browse the repository at this point in the history
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 12, 2012
1 parent fe806cb commit ad60fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glstate.cpp
Expand Up @@ -54,7 +54,7 @@ Context::Context(void) {
version[6] == ' ' && version[6] == ' ' &&
version[7] == 'E' && version[7] == 'E' &&
version[8] == 'S' && version[8] == 'S' &&
version[9] == ' ') { (version[9] == ' ' || version[9] == '-')) {
ES = true; ES = true;
} }
} }
Expand Down

0 comments on commit ad60fd1

Please sign in to comment.