diff options
author | Dave Airlie <[email protected]> | 2012-12-06 16:12:11 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-12-08 13:32:33 +1000 |
commit | 915efe7f07a370827be9872fbf93cf9fc304ba24 (patch) | |
tree | 17440b9197866baab2a5c1ebf5fb5372373d4677 /src/mesa/state_tracker/st_extensions.c | |
parent | a0281c4a8c056d0873a18ec790563362f37f0e74 (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 62a736bb61b..0c6179577c6 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -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; } |