diff options
author | Kristian Høgsberg <[email protected]> | 2010-07-23 16:15:31 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-07-23 22:05:53 -0400 |
commit | 6ec39db726beead21d97bf64ddbe1f0b2d2d6ca1 (patch) | |
tree | 65a665c1d10ab43618a2c508081a7cc7d31ab9ab /src/glx/glxext.c | |
parent | b5dedd7c3b4425127d8b85b7e8df0ecda4009fd7 (diff) |
glx: Refactor and simplify context creation
This lets us better separate context creation between the different
backends.
Diffstat (limited to 'src/glx/glxext.c')
-rw-r--r-- | src/glx/glxext.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 324230f5e3e..f9a5f7ce5d7 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -738,21 +738,6 @@ glx_screen_init(__GLXscreenConfigs *psc, return GL_TRUE; } -static __GLXscreenConfigs * -createIndirectScreen(int screen, __GLXdisplayPrivate * priv) -{ - __GLXscreenConfigs *psc; - - psc = Xmalloc(sizeof *psc); - if (psc == NULL) - return NULL; - - memset(psc, 0, sizeof *psc); - glx_screen_init(psc, screen, priv); - - return psc; -} - /* ** Allocate the memory for the per screen configs for each screen. ** If that works then fetch the per screen configs data. @@ -789,7 +774,7 @@ AllocAndFetchScreenConfigs(Display * dpy, __GLXdisplayPrivate * priv) psc = (*priv->driswDisplay->createScreen) (i, priv); #endif if (psc == NULL) - psc = createIndirectScreen (i, priv); + psc = indirect_create_screen(i, priv); priv->screenConfigs[i] = psc; } SyncHandle(); |