mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
mesa: add KHR_no_error support to glBeginConditionalRender()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
e1750e0a17
commit
9a0b203382
3 changed files with 12 additions and 1 deletions
|
|
@ -246,7 +246,7 @@
|
|||
|
||||
<!-- These functions alias ones from GL_NV_conditional_render -->
|
||||
|
||||
<function name="BeginConditionalRender">
|
||||
<function name="BeginConditionalRender" no_error="true">
|
||||
<param name="query" type="GLuint"/>
|
||||
<param name="mode" type="GLenum"/>
|
||||
</function>
|
||||
|
|
|
|||
|
|
@ -104,6 +104,14 @@ begin_conditional_render(struct gl_context *ctx, GLuint queryId, GLenum mode,
|
|||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BeginConditionalRender_no_error(GLuint queryId, GLenum mode)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
begin_conditional_render(ctx, queryId, mode, true);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BeginConditionalRender(GLuint queryId, GLenum mode)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,6 +31,9 @@
|
|||
#include "context.h"
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BeginConditionalRender_no_error(GLuint queryId, GLenum mode);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_BeginConditionalRender(GLuint queryId, GLenum mode);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue