mesa: plug in new _mesa_CopyBufferSubData() functions
authorBrian Paul <brianp@vmware.com>
Wed, 3 Jun 2009 02:32:15 +0000 (20:32 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 3 Jun 2009 03:35:11 +0000 (21:35 -0600)
src/mesa/drivers/common/driverfuncs.c
src/mesa/main/api_exec.c
src/mesa/main/dlist.c

index 276da41f4e4029f67dfc49e85d39f75769b534bf..56abdbdfcb4f56e25036e064180d0bd37d084ec0 100644 (file)
@@ -237,6 +237,9 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
    driver->DeleteArrayObject = _mesa_delete_array_object;
    driver->BindArrayObject = NULL;
 
+   /* GL_ARB_copy_buffer */
+   driver->CopyBufferSubData = _mesa_copy_buffer_subdata;
+
    /* T&L stuff */
    driver->NeedValidate = GL_FALSE;
    driver->ValidateTnlModule = NULL;
index 6f66ff47a0822c627b27022ff533b510fa2f88fa..c714d177a2a407d6ae52bbd983cd5eda4fdb9afd 100644 (file)
@@ -894,5 +894,8 @@ _mesa_init_exec_table(struct _glapi_table *exec)
     */
    SET_RenderbufferStorageMultisample(exec, _mesa_RenderbufferStorageMultisample);
 #endif
+
+   /* GL_ARB_copy_buffer */
+   SET_CopyBufferSubData(exec, _mesa_CopyBufferSubData);
 }
 
index dd73a1906b8963a87922df48e86c0658014dbeb9..d3c1717a50644d0e88df3b7ff45d3a2975c6c673 100644 (file)
@@ -8238,6 +8238,9 @@ _mesa_init_dlist_table(struct _glapi_table *table)
    SET_ProgramEnvParameters4fvEXT(table, save_ProgramEnvParameters4fvEXT);
    SET_ProgramLocalParameters4fvEXT(table, save_ProgramLocalParameters4fvEXT);
 #endif
+
+   /* ARB 59. GL_ARB_copy_buffer */
+   SET_CopyBufferSubData(table, _mesa_CopyBufferSubData); /* no dlist save */
 }