diff options
author | Chia-I Wu <[email protected]> | 2010-01-12 17:55:53 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-01-12 17:56:48 +0800 |
commit | 28272bc472067454a788a1def4f650bb6c42d721 (patch) | |
tree | 83b85a9e648d7537e51befb73e10f6f74e15c952 /src/gallium | |
parent | 3e6139d158a054a0dfe8def28bf60201cdb9f385 (diff) |
st/egl_g3d: Get the stapi from the driver.
egl_g3d_get_st was called because the driver argument was not given
before. It can be fixed now.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/egl_g3d/common/egl_g3d.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/egl_g3d/common/egl_g3d.c b/src/gallium/state_trackers/egl_g3d/common/egl_g3d.c index d7d3f934b56..741e5b46593 100644 --- a/src/gallium/state_trackers/egl_g3d/common/egl_g3d.c +++ b/src/gallium/state_trackers/egl_g3d/common/egl_g3d.c @@ -851,13 +851,12 @@ egl_g3d_wait_native(_EGLDriver *drv, _EGLDisplay *dpy, EGLint engine) static _EGLProc egl_g3d_get_proc_address(_EGLDriver *drv, const char *procname) { - /* FIXME how come _EGLDriver is not passed? */ - const struct egl_g3d_st *stapi; + struct egl_g3d_driver *gdrv = egl_g3d_driver(drv); _EGLProc proc; EGLint i; for (i = 0; i < NUM_EGL_G3D_STS; i++) { - stapi = egl_g3d_get_st(i); + const struct egl_g3d_st *stapi = gdrv->stapis[i]; if (stapi) { proc = (_EGLProc) stapi->st_get_proc_address(procname); if (proc) |