mesa: add new query/buffer targets for transform feedback
This commit is contained in:
@@ -83,6 +83,13 @@ get_buffer_target(GLcontext *ctx, GLenum target)
|
|||||||
return &ctx->CopyWriteBuffer;
|
return &ctx->CopyWriteBuffer;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
#if FEATURE_EXT_transform_feedback
|
||||||
|
case GL_TRANSFORM_FEEDBACK_BUFFER:
|
||||||
|
if (ctx->Extensions.EXT_transform_feedback) {
|
||||||
|
return &ctx->TransformFeedback.CurrentBuffer;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@@ -148,6 +148,18 @@ get_query_binding_point(GLcontext *ctx, GLenum target)
|
|||||||
return &ctx->Query.CurrentTimerObject;
|
return &ctx->Query.CurrentTimerObject;
|
||||||
else
|
else
|
||||||
return NULL;
|
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:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user