summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/libgl-xlib/xlib.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-03-13 15:57:15 +0800
committerChia-I Wu <[email protected]>2010-03-13 16:05:09 +0800
commit813c58d77e21cb59adb914b4b4ee26be758ff0ea (patch)
tree808891b5869505519b1f6a767d9896a5efd41be0 /src/gallium/targets/libgl-xlib/xlib.c
parentfecb97aab42e1a099f12cc7a47ed7219cd041809 (diff)
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/libgl-xlib/xlib.c')
-rw-r--r--src/gallium/targets/libgl-xlib/xlib.c3
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 50dd99ffce1..1e6769367f4 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,
};