mesa: add new query/buffer targets for transform feedback

This commit is contained in:
Brian Paul
2010-03-30 19:53:01 -06:00
parent a5d7ee929e
commit 423860ac78
2 changed files with 19 additions and 0 deletions

View File

@@ -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;
}