SFML community forums

Help => Window => Topic started by: BlueCobold on November 18, 2014, 09:32:23 am

Title: iOS Settings Version Number
Post by: BlueCobold on November 18, 2014, 09:32:23 am
Hi.

I'm currently trying to get SFML to display anything at all on iOS simulator and I noticed that GlContext initializes the settings with version-numbers like that:
Code: [Select]
const GLubyte* version = glGetString(GL_VERSION);
if (version)
{
// The beginning of the returned string is "major.minor" (this is standard)
m_settings.majorVersion = version[0] - '0';
m_settings.minorVersion = version[2] - '0';
}

Now I get the following string returned: "OpenGL ES-CM 1.1 Apple-10.1.5"
The resulting major and minor version numbers are 31 and 53, because it tries to use "O" and "e". Is that a problem or can that be ignored?
(The OpenGL ES specification also verifies this string: https://www.khronos.org/opengles/sdk/1.1/docs/man/glGetString.xml - so the "standard" differs ;) )