mesa: add end_conditional_render() render
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -133,18 +133,11 @@ _mesa_BeginConditionalRender(GLuint queryId, GLenum mode)
|
||||
}
|
||||
|
||||
|
||||
void APIENTRY
|
||||
_mesa_EndConditionalRender(void)
|
||||
static void
|
||||
end_conditional_render(struct gl_context *ctx)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
FLUSH_VERTICES(ctx, 0x0);
|
||||
|
||||
if (!ctx->Extensions.NV_conditional_render || !ctx->Query.CondRenderQuery) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glEndConditionalRender()");
|
||||
return;
|
||||
}
|
||||
|
||||
if (ctx->Driver.EndConditionalRender)
|
||||
ctx->Driver.EndConditionalRender(ctx, ctx->Query.CondRenderQuery);
|
||||
|
||||
@@ -153,6 +146,20 @@ _mesa_EndConditionalRender(void)
|
||||
}
|
||||
|
||||
|
||||
void APIENTRY
|
||||
_mesa_EndConditionalRender(void)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (!ctx->Extensions.NV_conditional_render || !ctx->Query.CondRenderQuery) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glEndConditionalRender()");
|
||||
return;
|
||||
}
|
||||
|
||||
end_conditional_render(ctx);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This function is called by software rendering commands (all point,
|
||||
* line triangle drawing, glClear, glDrawPixels, glCopyPixels, and
|
||||
|
||||
Reference in New Issue
Block a user