diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-03-13 15:57:15 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-03-13 16:05:09 +0800 |
commit | 813c58d77e21cb59adb914b4b4ee26be758ff0ea (patch) | |
tree | 808891b5869505519b1f6a767d9896a5efd41be0 /src/gallium/targets | |
parent | fecb97aab42e1a099f12cc7a47ed7219cd041809 (diff) | |
download | external_mesa3d-813c58d77e21cb59adb914b4b4ee26be758ff0ea.zip external_mesa3d-813c58d77e21cb59adb914b4b4ee26be758ff0ea.tar.gz external_mesa3d-813c58d77e21cb59adb914b4b4ee26be758ff0ea.tar.bz2 |
st/glx: Make xmesa_create_st_api a callback of xm_driver.
Instead of guessing the API in st/glx, let the target decide how to
create st_api.
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/libgl-xlib/xlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/targets/libgl-xlib/xlib.c b/src/gallium/targets/libgl-xlib/xlib.c index 50dd99f..1e67693 100644 --- a/src/gallium/targets/libgl-xlib/xlib.c +++ b/src/gallium/targets/libgl-xlib/xlib.c @@ -104,9 +104,10 @@ fail: return NULL; } -struct xm_driver xlib_driver = +static struct xm_driver xlib_driver = { .create_pipe_screen = swrast_xlib_create_screen, + .create_st_api = st_manager_create_api, }; |