Fix OpenGL ES prefix skip

This commit is contained in:
Romain Vimont 2022-03-30 11:57:47 +02:00
parent c3d45c8397
commit aaf3869a54

View file

@ -28,7 +28,7 @@ sc_opengl_init(struct sc_opengl *gl) {
sizeof(OPENGL_ES_PREFIX) - 1);
if (gl->is_opengles) {
/* 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);