Fix OpenGL ES prefix skip
This commit is contained in:
parent
c3d45c8397
commit
aaf3869a54
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ sc_opengl_init(struct sc_opengl *gl) {
|
||||||
sizeof(OPENGL_ES_PREFIX) - 1);
|
sizeof(OPENGL_ES_PREFIX) - 1);
|
||||||
if (gl->is_opengles) {
|
if (gl->is_opengles) {
|
||||||
/* skip the prefix */
|
/* skip the prefix */
|
||||||
version += sizeof(PREFIX) - 1;
|
version += sizeof(OPENGL_ES_PREFIX) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int r = sscanf(version, "%d.%d", &gl->version_major, &gl->version_minor);
|
int r = sscanf(version, "%d.%d", &gl->version_major, &gl->version_minor);
|
||||||
|
|
Loading…
Reference in a new issue