r300g: Make the buffer and texture vbtls static const.

This commit is contained in:
Henri Verbeet 2011-02-03 21:10:50 +01:00
parent 126e98966d
commit d17d03a8dc
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ static void r300_buffer_transfer_inline_write(struct pipe_context *pipe,
rws->buffer_unmap(rws, rbuf->buf);
}
struct u_resource_vtbl r300_buffer_vtbl =
static const struct u_resource_vtbl r300_buffer_vtbl =
{
u_default_resource_get_handle, /* get_handle */
r300_buffer_destroy, /* resource_destroy */

View File

@ -763,7 +763,7 @@ static boolean r300_texture_get_handle(struct pipe_screen* screen,
tex->desc.stride_in_bytes[0], whandle);
}
struct u_resource_vtbl r300_texture_vtbl =
static const struct u_resource_vtbl r300_texture_vtbl =
{
r300_texture_get_handle, /* get_handle */
r300_texture_destroy, /* resource_destroy */