st/mesa: add texture buffer object support to state tracker (v1.1)

This adds the necessary changes to the st to allow texture buffer object
support if the driver advertises it.

v1.1: remove extra blank line and whitespace

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie
2012-12-06 16:12:11 +10:00
parent a0281c4a8c
commit 915efe7f07
5 changed files with 31 additions and 7 deletions

View File

@@ -643,4 +643,6 @@ void st_init_extensions(struct st_context *st)
if (ctx->Const.MinMapBufferAlignment >= 64) {
ctx->Extensions.ARB_map_buffer_alignment = GL_TRUE;
}
if (screen->get_param(screen, PIPE_CAP_TEXTURE_BUFFER_OBJECTS))
ctx->Extensions.ARB_texture_buffer_object = GL_TRUE;
}