From 423860ac7809173dda479991f23751ad169076d1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 30 Mar 2010 19:53:01 -0600 Subject: mesa: add new query/buffer targets for transform feedback --- src/mesa/main/bufferobj.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/main/bufferobj.c') diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 11bf48622fd..235cafcf1ed 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -83,6 +83,13 @@ get_buffer_target(GLcontext *ctx, GLenum target) return &ctx->CopyWriteBuffer; } break; +#if FEATURE_EXT_transform_feedback + case GL_TRANSFORM_FEEDBACK_BUFFER: + if (ctx->Extensions.EXT_transform_feedback) { + return &ctx->TransformFeedback.CurrentBuffer; + } + break; +#endif default: return NULL; } -- cgit v1.2.3