mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: add KHR_no_error support to glBindTexture()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
cba013d423
commit
9f1fab9533
3 changed files with 12 additions and 1 deletions
|
|
@ -3333,7 +3333,7 @@
|
|||
<glx sop="143" handcode="client" always_array="true"/>
|
||||
</function>
|
||||
|
||||
<function name="BindTexture" es1="1.0" es2="2.0">
|
||||
<function name="BindTexture" es1="1.0" es2="2.0" no_error="true">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="texture" type="GLuint"/>
|
||||
<glx rop="4117"/>
|
||||
|
|
|
|||
|
|
@ -1702,6 +1702,14 @@ bind_texture(struct gl_context *ctx, GLenum target, GLuint texName,
|
|||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BindTexture_no_error(GLenum target, GLuint texName)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
bind_texture(ctx, target, texName, true);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BindTexture(GLenum target, GLuint texName)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -193,6 +193,9 @@ extern void GLAPIENTRY
|
|||
_mesa_DeleteTextures( GLsizei n, const GLuint *textures );
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BindTexture_no_error(GLenum target, GLuint texture);
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_BindTexture( GLenum target, GLuint texture );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue