diff options
author | Chia-I Wu <[email protected]> | 2010-01-31 13:33:57 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-01-31 14:46:14 +0800 |
commit | d69242be55091e53b0ae2cfa6282790ce1862f29 (patch) | |
tree | 84ac6ceb40d6893d6a69b9ad7fef47677416772b /src/egl/main/eglcontext.c | |
parent | e694ccad803157b71b2de78d63ee6dacc489faab (diff) |
egl: Initialize display resources with their display.
Change _eglInitSurface, _eglInitContext, and _eglInitImage to take an
_EGLDisplay instead of an _EGLDriver. This is a more natural form, and
plus, the display encodes information such as the extensions supported
that might be required for attribute list parsing.
Diffstat (limited to 'src/egl/main/eglcontext.c')
-rw-r--r-- | src/egl/main/eglcontext.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index f73cf2d0b35..012d8dfe1f4 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcontext.c @@ -101,8 +101,8 @@ _eglParseContextAttribList(_EGLContext *ctx, const EGLint *attrib_list) * in the attrib_list. */ EGLBoolean -_eglInitContext(_EGLDriver *drv, _EGLContext *ctx, - _EGLConfig *conf, const EGLint *attrib_list) +_eglInitContext(_EGLContext *ctx, _EGLDisplay *dpy, _EGLConfig *conf, + const EGLint *attrib_list) { const EGLenum api = eglQueryAPI(); EGLint err; @@ -113,6 +113,7 @@ _eglInitContext(_EGLDriver *drv, _EGLContext *ctx, } memset(ctx, 0, sizeof(_EGLContext)); + ctx->Resource.Display = dpy; ctx->ClientAPI = api; ctx->Config = conf; ctx->WindowRenderBuffer = EGL_NONE; |