summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-12-16 09:06:17 -0700
committerBrian Paul <[email protected]>2013-12-18 09:06:51 -0700
commit787dadbeeaa26069799c7b0c8b17a4ce44f7e808 (patch)
tree8d450d4348a650cab5f318b245382b31c2b0249c /src
parent5f7bc0c75904a40da0973329badea8497e53a26a (diff)
st/mesa: plug in default buffer object driver functions
In particular, this plugs in the new ClearBufferSubData() fallback driver function.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_bufferobjects.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bufferobjects.c b/src/mesa/state_tracker/st_cb_bufferobjects.c
index 7fa4cbdc491..230ab544947 100644
--- a/src/mesa/state_tracker/st_cb_bufferobjects.c
+++ b/src/mesa/state_tracker/st_cb_bufferobjects.c
@@ -422,6 +422,9 @@ st_bufferobj_validate_usage(struct st_context *st,
void
st_init_bufferobject_functions(struct dd_function_table *functions)
{
+ /* plug in default driver fallbacks (such as for ClearBufferSubData) */
+ _mesa_init_buffer_object_functions(functions);
+
functions->NewBufferObject = st_bufferobj_alloc;
functions->DeleteBuffer = st_bufferobj_free;
functions->BufferData = st_bufferobj_data;