mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
mesa: add KHR_no_error support for gl*Buffers()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
064bb7499c
commit
7c02267673
4 changed files with 24 additions and 2 deletions
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
<!-- Buffer object functions -->
|
||||
|
||||
<function name="CreateBuffers">
|
||||
<function name="CreateBuffers" no_error="true">
|
||||
<param name="n" type="GLsizei" />
|
||||
<param name="buffers" type="GLuint *" />
|
||||
</function>
|
||||
|
|
|
|||
|
|
@ -5068,7 +5068,7 @@
|
|||
<glx ignore="true"/>
|
||||
</function>
|
||||
|
||||
<function name="GenBuffers" es1="1.1" es2="2.0">
|
||||
<function name="GenBuffers" es1="1.1" es2="2.0" no_error="true">
|
||||
<param name="n" type="GLsizei" counter="true"/>
|
||||
<param name="buffer" type="GLuint *" output="true" count="n"/>
|
||||
<glx ignore="true"/>
|
||||
|
|
|
|||
|
|
@ -1478,6 +1478,14 @@ create_buffers_err(struct gl_context *ctx, GLsizei n, GLuint *buffers, bool dsa)
|
|||
* \param n Number of IDs to generate.
|
||||
* \param buffers Array of \c n locations to store the IDs.
|
||||
*/
|
||||
void GLAPIENTRY
|
||||
_mesa_GenBuffers_no_error(GLsizei n, GLuint *buffers)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
create_buffers(ctx, n, buffers, false);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_GenBuffers(GLsizei n, GLuint *buffers)
|
||||
{
|
||||
|
|
@ -1491,6 +1499,14 @@ _mesa_GenBuffers(GLsizei n, GLuint *buffers)
|
|||
* \param n Number of IDs to generate.
|
||||
* \param buffers Array of \c n locations to store the IDs.
|
||||
*/
|
||||
void GLAPIENTRY
|
||||
_mesa_CreateBuffers_no_error(GLsizei n, GLuint *buffers)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
create_buffers(ctx, n, buffers, true);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CreateBuffers(GLsizei n, GLuint *buffers)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -164,9 +164,15 @@ _mesa_BindBuffer(GLenum target, GLuint buffer);
|
|||
void GLAPIENTRY
|
||||
_mesa_DeleteBuffers(GLsizei n, const GLuint * buffer);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_GenBuffers_no_error(GLsizei n, GLuint *buffers);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_GenBuffers(GLsizei n, GLuint *buffers);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CreateBuffers_no_error(GLsizei n, GLuint *buffers);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CreateBuffers(GLsizei n, GLuint *buffers);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue