From 56f428817f4f57806e73d0acd18949bf563f6540 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 26 Jun 2017 13:53:02 +0200 Subject: mesa: add KHR_no_error support for gl*Textures() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mesa/main/texobj.c | 16 ++++++++++++++++ src/mesa/main/texobj.h | 6 ++++++ 2 files changed, 22 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 8cd70c3eaea..156a122ac0d 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -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) { diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h index a82c9722639..f10623899fc 100644 --- a/src/mesa/main/texobj.h +++ b/src/mesa/main/texobj.h @@ -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); -- cgit v1.2.3