switch (dri2_ctx->base.ClientAPI) {
case EGL_OPENGL_ES_API:
- switch (dri2_ctx->base.ClientVersion) {
+ switch (dri2_ctx->base.ClientMajorVersion) {
case 1:
api = __DRI_API_GLES;
break;
unsigned error;
const uint32_t ctx_attribs[2] = {
__DRI_CTX_ATTRIB_MAJOR_VERSION,
- dri2_ctx->base.ClientVersion
+ dri2_ctx->base.ClientMajorVersion
};
dri2_ctx->dri_context =
switch (ctx->ClientAPI) {
case EGL_OPENGL_ES_API:
- switch (ctx->ClientVersion) {
+ switch (ctx->ClientMajorVersion) {
case 1:
bit = EGL_OPENGL_ES_BIT;
break;
err = EGL_BAD_ATTRIBUTE;
break;
}
- ctx->ClientVersion = val;
+ ctx->ClientMajorVersion = val;
break;
default:
err = EGL_BAD_ATTRIBUTE;
ctx->Config = conf;
ctx->WindowRenderBuffer = EGL_NONE;
- ctx->ClientVersion = 1; /* the default, per EGL spec */
+ ctx->ClientMajorVersion = 1; /* the default, per EGL spec */
+ ctx->ClientMinorVersion = 0;
err = _eglParseContextAttribList(ctx, attrib_list);
if (err == EGL_SUCCESS && ctx->Config) {
*value = c->Config->ConfigID;
break;
case EGL_CONTEXT_CLIENT_VERSION:
- *value = c->ClientVersion;
+ *value = c->ClientMajorVersion;
break;
case EGL_CONTEXT_CLIENT_TYPE:
*value = c->ClientAPI;
_EGLConfig *Config;
EGLint ClientAPI; /**< EGL_OPENGL_ES_API, EGL_OPENGL_API, EGL_OPENVG_API */
- EGLint ClientVersion; /**< 1 = OpenGLES 1.x, 2 = OpenGLES 2.x */
+ EGLint ClientMajorVersion;
+ EGLint ClientMinorVersion;
/* The real render buffer when a window surface is bound */
EGLint WindowRenderBuffer;