diff options
author | Chia-I Wu <[email protected]> | 2011-01-12 18:06:47 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-01-12 18:10:15 +0800 |
commit | 39812c48dfb18e6c3b896db8a8395eeebef8cc1b (patch) | |
tree | 318b299b8fb5fc3ce9763996f273c341f5faae4a | |
parent | a8b6b6555c7d6a02a3d095c72ebbdc218bc45cd3 (diff) |
egl_dri2: Fix eglGetProcAddress.
The driver struct is zeroed after dri2_load. Oops.
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 8967969c924..458d18f4da5 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -2382,10 +2382,11 @@ _EGL_MAIN(const char *args) if (!dri2_drv) return NULL; + memset(dri2_drv, 0, sizeof *dri2_drv); + if (!dri2_load(&dri2_drv->base)) return NULL; - memset(dri2_drv, 0, sizeof *dri2_drv); _eglInitDriverFallbacks(&dri2_drv->base); dri2_drv->base.API.Initialize = dri2_initialize; dri2_drv->base.API.Terminate = dri2_terminate; |