diff options
author | Kristian Høgsberg <[email protected]> | 2010-07-19 22:12:22 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-07-19 22:45:51 -0400 |
commit | bab13969d8bf3ff9259524c3f4ab96d81485ccef (patch) | |
tree | 28dc1e3995a3c141078776dbb7ca8fa879342378 /src/glx/dri2_glx.c | |
parent | e3e8196c025bd344a59b4671e473c395a6ea426b (diff) |
glx: Move driver_configs to DRI screen privates
Diffstat (limited to 'src/glx/dri2_glx.c')
-rw-r--r-- | src/glx/dri2_glx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 6ac03cf0cfb..df7ad477ffd 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -86,6 +86,7 @@ struct dri2_screen { const __DRI2flushExtension *f; const __DRI2configQueryExtension *config; const __DRItexBufferExtension *texBuffer; + const __DRIconfig **driver_configs; void *driver; int fd; @@ -428,6 +429,7 @@ dri2DestroyScreen(__GLXscreenConfigs *base) /* Free the direct rendering per screen data */ (*psc->core->destroyScreen) (psc->driScreen); + driDestroyConfigs(psc->driver_configs); close(psc->fd); Xfree(psc); } @@ -785,7 +787,7 @@ dri2CreateScreen(int screen, __GLXdisplayPrivate * priv) psc->base.visuals = driConvertConfigs(psc->core, psc->base.visuals, driver_configs); - psc->base.driver_configs = driver_configs; + psc->driver_configs = driver_configs; psp = &psc->vtable; psc->base.driScreen = psp; |