mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
mesa: add KHR_no_error support for glBindBuffer()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
b019c4e6e8
commit
c231590f8d
3 changed files with 14 additions and 1 deletions
|
|
@ -5037,7 +5037,7 @@
|
|||
<type name="intptr" size="4" glx_name="CARD32"/>
|
||||
<type name="sizeiptr" size="4" unsigned="true" glx_name="CARD32"/>
|
||||
|
||||
<function name="BindBuffer" es1="1.1" es2="2.0" marshal="custom">
|
||||
<function name="BindBuffer" es1="1.1" es2="2.0" marshal="custom" no_error="true">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="buffer" type="GLuint"/>
|
||||
<glx ignore="true"/>
|
||||
|
|
|
|||
|
|
@ -1228,6 +1228,16 @@ _mesa_buffer_unmap_all_mappings(struct gl_context *ctx,
|
|||
/* API Functions */
|
||||
/**********************************************************************/
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BindBuffer_no_error(GLenum target, GLuint buffer)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
struct gl_buffer_object **bindTarget = get_buffer_target(ctx, target);
|
||||
bind_buffer_object(ctx, bindTarget, buffer);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BindBuffer(GLenum target, GLuint buffer)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -155,6 +155,9 @@ _mesa_ClearBufferSubData_sw(struct gl_context *ctx,
|
|||
/*
|
||||
* API functions
|
||||
*/
|
||||
void GLAPIENTRY
|
||||
_mesa_BindBuffer_no_error(GLenum target, GLuint buffer);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_BindBuffer(GLenum target, GLuint buffer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue