From: Brian Paul Date: Mon, 16 Dec 2013 16:06:17 +0000 (-0700) Subject: st/mesa: plug in default buffer object driver functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=787dadbeeaa26069799c7b0c8b17a4ce44f7e808;p=mesa.git st/mesa: plug in default buffer object driver functions In particular, this plugs in the new ClearBufferSubData() fallback driver function. --- 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;