Commit 423860ac authored by Brian Paul's avatar Brian Paul

mesa: add new query/buffer targets for transform feedback

parent a5d7ee92
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment