diff options
author | Brian Paul <[email protected]> | 2011-04-05 19:02:07 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-04-05 19:02:09 -0600 |
commit | 874a2c0b7da62f4dd08dedcec221f55b22e40e95 (patch) | |
tree | ea9f5132853bac739c6808efa99e799cbcb31dbf /src/mesa/main/bufferobj.c | |
parent | 9a77e285e8d015328278fcd0a110e662dba2e744 (diff) |
mesa: core support for GL_ARB_texture_buffer_object
No GLSL or driver support yet.
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r-- | src/mesa/main/bufferobj.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index c969a8da47d..78105883c97 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -93,6 +93,11 @@ get_buffer_target(struct gl_context *ctx, GLenum target) } break; #endif + case GL_TEXTURE_BUFFER: + if (ctx->Extensions.ARB_texture_buffer_object) { + return &ctx->Texture.BufferObject; + } + break; default: return NULL; } |