diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-26 13:53:02 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-28 10:25:12 +0200 |
commit | 56f428817f4f57806e73d0acd18949bf563f6540 (patch) | |
tree | ba9780c4ef9a3900b3e609de771ccbb31b780185 /src/mesa/main/texobj.c | |
parent | ab6d383e32311800ae8bbe0e9d63a4e8d80a66de (diff) |
mesa: add KHR_no_error support for gl*Textures()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r-- | src/mesa/main/texobj.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ -1262,6 +1262,14 @@ create_textures_err(struct gl_context *ctx, GLenum target, * 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) { GET_CURRENT_CONTEXT(ctx); @@ -1282,6 +1290,14 @@ _mesa_GenTextures(GLsizei n, GLuint *textures) * 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) { GLint targetIndex; |