mesa: add KHR_no_error support for gl*Samplers()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -675,7 +675,7 @@
|
||||
|
||||
<!-- Sampler object functions -->
|
||||
|
||||
<function name="CreateSamplers">
|
||||
<function name="CreateSamplers" no_error="true">
|
||||
<param name="n" type="GLsizei" />
|
||||
<param name="samplers" type="GLuint *" />
|
||||
</function>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<category name="GL_ARB_sampler_objects" number="81">
|
||||
|
||||
<function name="GenSamplers" es2="3.0">
|
||||
<function name="GenSamplers" es2="3.0" no_error="true">
|
||||
<param name="count" type="GLsizei"/>
|
||||
<param name="samplers" type="GLuint *"/>
|
||||
</function>
|
||||
|
||||
@@ -193,6 +193,13 @@ create_samplers_err(struct gl_context *ctx, GLsizei count, GLuint *samplers,
|
||||
create_samplers(ctx, count, samplers);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_GenSamplers_no_error(GLsizei count, GLuint *samplers)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
create_samplers(ctx, count, samplers);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_GenSamplers(GLsizei count, GLuint *samplers)
|
||||
{
|
||||
@@ -200,6 +207,13 @@ _mesa_GenSamplers(GLsizei count, GLuint *samplers)
|
||||
create_samplers_err(ctx, count, samplers, "glGenSamplers");
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CreateSamplers_no_error(GLsizei count, GLuint *samplers)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
create_samplers(ctx, count, samplers);
|
||||
}
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CreateSamplers(GLsizei count, GLuint *samplers)
|
||||
{
|
||||
|
||||
@@ -95,8 +95,15 @@ extern void
|
||||
_mesa_bind_sampler(struct gl_context *ctx, GLuint unit,
|
||||
struct gl_sampler_object *sampObj);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_GenSamplers_no_error(GLsizei count, GLuint *samplers);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_GenSamplers(GLsizei count, GLuint *samplers);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CreateSamplers_no_error(GLsizei count, GLuint *samplers);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CreateSamplers(GLsizei count, GLuint *samplers);
|
||||
void GLAPIENTRY
|
||||
|
||||
Reference in New Issue
Block a user