summaryrefslogtreecommitdiff
path: root/src/mesa/main/queryobj.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-03-30 19:53:01 -0600
committerBrian Paul <brianp@vmware.com>2010-03-30 20:04:04 -0600
commit423860ac7809173dda479991f23751ad169076d1 (patch)
tree11158a05d20c33e9f6573b36f693c39244347513 /src/mesa/main/queryobj.c
parenta5d7ee929e47e85a97f0dedbe3e30f1c57e7f49b (diff)
mesa: add new query/buffer targets for transform feedback
Diffstat (limited to 'src/mesa/main/queryobj.c')
-rw-r--r--src/mesa/main/queryobj.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index ff084d70c8..a907dac836 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -148,6 +148,18 @@ get_query_binding_point(GLcontext *ctx, GLenum target)
return &ctx->Query.CurrentTimerObject;
else
return NULL;
+#if FEATURE_EXT_transform_feedback
+ case GL_PRIMITIVES_GENERATED:
+ if (ctx->Extensions.EXT_transform_feedback)
+ return &ctx->Query.PrimitivesGenerated;
+ else
+ return NULL;
+ case GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:
+ if (ctx->Extensions.EXT_transform_feedback)
+ return &ctx->Query.PrimitivesWritten;
+ else
+ return NULL;
+#endif
default:
return NULL;
}