mesa: add KHR_no_error support for gl*Textures()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Samuel Pitoiset 2017-06-26 13:53:02 +02:00
parent ab6d383e32
commit 56f428817f
4 changed files with 24 additions and 2 deletions

View file

@ -311,7 +311,7 @@
<!-- Texture object functions -->
<function name="CreateTextures">
<function name="CreateTextures" no_error="true">
<param name="target" type="GLenum" />
<param name="n" type="GLsizei" />
<param name="textures" type="GLuint *" />

View file

@ -3345,7 +3345,7 @@
<glx sop="144"/>
</function>
<function name="GenTextures" es1="1.0" es2="2.0">
<function name="GenTextures" es1="1.0" es2="2.0" no_error="true">
<param name="n" type="GLsizei" counter="true"/>
<param name="textures" type="GLuint *" output="true" count="n"/>
<glx sop="145" always_array="true"/>

View file

@ -1261,6 +1261,14 @@ create_textures_err(struct gl_context *ctx, GLenum target,
* IDs which are stored in \p textures. Corresponding empty texture
* objects are also generated.
*/
void GLAPIENTRY
_mesa_GenTextures_no_error(GLsizei n, GLuint *textures)
{
GET_CURRENT_CONTEXT(ctx);
create_textures(ctx, 0, n, textures, "glGenTextures");
}
void GLAPIENTRY
_mesa_GenTextures(GLsizei n, GLuint *textures)
{
@ -1281,6 +1289,14 @@ _mesa_GenTextures(GLsizei n, GLuint *textures)
* IDs which are stored in \p textures. Corresponding empty texture
* objects are also generated.
*/
void GLAPIENTRY
_mesa_CreateTextures_no_error(GLenum target, GLsizei n, GLuint *textures)
{
GET_CURRENT_CONTEXT(ctx);
create_textures(ctx, target, n, textures, "glCreateTextures");
}
void GLAPIENTRY
_mesa_CreateTextures(GLenum target, GLsizei n, GLuint *textures)
{

View file

@ -177,9 +177,15 @@ _mesa_lock_context_textures( struct gl_context *ctx );
*/
/*@{*/
void GLAPIENTRY
_mesa_GenTextures_no_error(GLsizei n, GLuint *textures);
extern void GLAPIENTRY
_mesa_GenTextures(GLsizei n, GLuint *textures);
void GLAPIENTRY
_mesa_CreateTextures_no_error(GLenum target, GLsizei n, GLuint *textures);
extern void GLAPIENTRY
_mesa_CreateTextures(GLenum target, GLsizei n, GLuint *textures);