Lines Matching refs:major
56 bool get_gl_version_for_mesa(int mesaMajorVersion, int* major, int* minor) {
63 *major = 1;
67 *major = 2;
71 *major = 3;
75 *major = 3;
79 *major = 3;
106 int major, minor;
109 int n = sscanf(versionString, "%d.%d", &major, &minor);
116 n = sscanf(versionString, "OpenGL ES-%c%c %d.%d", profile, profile+1, &major, &minor);
123 n = sscanf(versionString, "OpenGL ES %d.%d", &major, &minor);
131 int major, minor, mesaMajor, mesaMinor;
132 int n = sscanf(versionString, "%d.%d Mesa %d.%d", &major, &minor, &mesaMajor, &mesaMinor);
146 int major, minor;
150 int n = sscanf(versionString, "%d.%d Mesa %d.%d", &major, &minor, &mesaMajor, &mesaMinor);
152 if (get_gl_version_for_mesa(mesaMajor, &major, &minor)) {
153 return GR_GL_VER(major, minor);
159 n = sscanf(versionString, "%d.%d", &major, &minor);
161 return GR_GL_VER(major, minor);
166 &major, &minor);
168 return GR_GL_VER(major, minor);
171 n = sscanf(versionString, "OpenGL ES %d.%d", &major, &minor);
173 return GR_GL_VER(major, minor);
185 int major, minor;
187 int n = sscanf(versionString, "%d.%d", &major, &minor);
189 return GR_GLSL_VER(major, minor);
192 n = sscanf(versionString, "OpenGL ES GLSL ES %d.%d", &major, &minor);
194 return GR_GLSL_VER(major, minor);
199 n = sscanf(versionString, "OpenGL ES GLSL %d.%d", &major, &minor);
201 return GR_GLSL_VER(major, minor);