diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mapi/glapi/gen/ARB_direct_state_access.xml | 2 | ||||
-rw-r--r-- | src/mapi/glapi/gen/ARB_sampler_objects.xml | 2 | ||||
-rw-r--r-- | src/mesa/main/samplerobj.c | 14 | ||||
-rw-r--r-- | src/mesa/main/samplerobj.h | 7 |
4 files changed, 23 insertions, 2 deletions
diff --git a/src/mapi/glapi/gen/ARB_direct_state_access.xml b/src/mapi/glapi/gen/ARB_direct_state_access.xml index e307f8e6edf..e8526d1c528 100644 --- a/src/mapi/glapi/gen/ARB_direct_state_access.xml +++ b/src/mapi/glapi/gen/ARB_direct_state_access.xml @@ -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> diff --git a/src/mapi/glapi/gen/ARB_sampler_objects.xml b/src/mapi/glapi/gen/ARB_sampler_objects.xml index 20363f70b28..9fe6c41c855 100644 --- a/src/mapi/glapi/gen/ARB_sampler_objects.xml +++ b/src/mapi/glapi/gen/ARB_sampler_objects.xml @@ -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> diff --git a/src/mesa/main/samplerobj.c b/src/mesa/main/samplerobj.c index 7ac1743e2d3..d78528be2db 100644 --- a/src/mesa/main/samplerobj.c +++ b/src/mesa/main/samplerobj.c @@ -194,6 +194,13 @@ create_samplers_err(struct gl_context *ctx, GLsizei count, GLuint *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) { GET_CURRENT_CONTEXT(ctx); @@ -201,6 +208,13 @@ _mesa_GenSamplers(GLsizei count, GLuint *samplers) } 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) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/samplerobj.h b/src/mesa/main/samplerobj.h index 8e9539d8d8f..26b5dd6b016 100644 --- a/src/mesa/main/samplerobj.h +++ b/src/mesa/main/samplerobj.h @@ -96,7 +96,14 @@ _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 |