mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-20 04:30:22 +01:00
mesa: add KHR_no_error support for glCopyTexImage*D()
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
8bf02efed3
commit
a00a277da9
3 changed files with 33 additions and 2 deletions
|
|
@ -3254,7 +3254,7 @@
|
|||
<glx rop="192"/>
|
||||
</function>
|
||||
|
||||
<function name="CopyTexImage1D">
|
||||
<function name="CopyTexImage1D" no_error="true">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="level" type="GLint"/>
|
||||
<param name="internalformat" type="GLenum"/>
|
||||
|
|
@ -3265,7 +3265,7 @@
|
|||
<glx rop="4119"/>
|
||||
</function>
|
||||
|
||||
<function name="CopyTexImage2D" es1="1.0" es2="2.0">
|
||||
<function name="CopyTexImage2D" es1="1.0" es2="2.0" no_error="true">
|
||||
<param name="target" type="GLenum"/>
|
||||
<param name="level" type="GLint"/>
|
||||
<param name="internalformat" type="GLenum"/>
|
||||
|
|
|
|||
|
|
@ -4007,6 +4007,26 @@ _mesa_CopyTexImage2D( GLenum target, GLint level, GLenum internalFormat,
|
|||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CopyTexImage1D_no_error(GLenum target, GLint level, GLenum internalFormat,
|
||||
GLint x, GLint y, GLsizei width, GLint border)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
copyteximage_no_error(ctx, 1, target, level, internalFormat, x, y, width, 1,
|
||||
border);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CopyTexImage2D_no_error(GLenum target, GLint level, GLenum internalFormat,
|
||||
GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLint border)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
copyteximage_no_error(ctx, 2, target, level, internalFormat,
|
||||
x, y, width, height, border);
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_CopyTexSubImage1D( GLenum target, GLint level,
|
||||
|
|
|
|||
|
|
@ -351,6 +351,17 @@ _mesa_CopyTexImage2D( GLenum target, GLint level,
|
|||
GLsizei width, GLsizei height, GLint border );
|
||||
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_CopyTexImage1D_no_error(GLenum target, GLint level, GLenum internalformat,
|
||||
GLint x, GLint y, GLsizei width, GLint border);
|
||||
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_CopyTexImage2D_no_error(GLenum target, GLint level, GLenum internalformat,
|
||||
GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLint border );
|
||||
|
||||
|
||||
extern void GLAPIENTRY
|
||||
_mesa_CopyTexSubImage1D( GLenum target, GLint level, GLint xoffset,
|
||||
GLint x, GLint y, GLsizei width );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue