diff options
author | Ian Romanick <[email protected]> | 2012-07-18 15:59:15 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-08-14 15:41:03 -0700 |
commit | 3fd79dd9886f05f45f3dc94c028a38dd75b8ee1b (patch) | |
tree | 705dc0f323fa4635da5f59bf01d8389b4c2f61f9 /src/egl/main/eglcontext.c | |
parent | ce55741cbc0837338b73f9112ab4d84363ebaee1 (diff) |
egl: Rename ClientVersion to ClientMajorVersion, add ClientMinorVersion
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/egl/main/eglcontext.c')
-rw-r--r-- | src/egl/main/eglcontext.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index fa6074971da..55d6865f566 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcontext.c @@ -49,7 +49,7 @@ _eglGetContextAPIBit(_EGLContext *ctx) switch (ctx->ClientAPI) { case EGL_OPENGL_ES_API: - switch (ctx->ClientVersion) { + switch (ctx->ClientMajorVersion) { case 1: bit = EGL_OPENGL_ES_BIT; break; @@ -100,7 +100,7 @@ _eglParseContextAttribList(_EGLContext *ctx, const EGLint *attrib_list) err = EGL_BAD_ATTRIBUTE; break; } - ctx->ClientVersion = val; + ctx->ClientMajorVersion = val; break; default: err = EGL_BAD_ATTRIBUTE; @@ -138,7 +138,8 @@ _eglInitContext(_EGLContext *ctx, _EGLDisplay *dpy, _EGLConfig *conf, 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) { @@ -191,7 +192,7 @@ _eglQueryContext(_EGLDriver *drv, _EGLDisplay *dpy, _EGLContext *c, *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; |